libertas: set mac control synchronously during init
authorDaniel Drake <dsd@laptop.org>
Tue, 11 Sep 2012 15:38:11 +0000 (11:38 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Sep 2012 19:32:02 +0000 (15:32 -0400)
CMD_MAC_CONTROL is currently sent async to the firmware, and is sent
from the lbs_setup_firmware() path during device init.

This means that device init can complete with commands pending, and
the if_sdio driver will sometimes power down the device (after init)
with this command still pending.

This was causing an occasional spurious command timeout after init,
leading to a device reset.

Fix this by making CMD_MAC_CONTROL synchronous when called from the
lbs_setup_firmware() path.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found