Search Linux Wireless

[PATCH 3/3] libertas_tf: flush the write queue in if_sdio_update_hw_spec.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mattia Barbon <mbarbon@xxxxxxxx>

After queuing the CMD_GET_HW_SPEC command, force a flush of the
write queue before waiting for the command response.

Signed-off-by: Mattia Barbon <mbarbon@xxxxxxxx>
Signed-off-by: Steve deRosier <steve@xxxxxxxxxxx>
---
 drivers/net/wireless/libertas_tf/if_sdio.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/libertas_tf/if_sdio.c b/drivers/net/wireless/libertas_tf/if_sdio.c
index d3d101e..8660229 100644
--- a/drivers/net/wireless/libertas_tf/if_sdio.c
+++ b/drivers/net/wireless/libertas_tf/if_sdio.c
@@ -946,6 +946,8 @@ int if_sdio_update_hw_spec(struct if_sdio_card *card)
 		goto out;
 	}
 
+	flush_workqueue(card->workqueue);
+
 	/* Wait for and retrieve response */
 	timeout = jiffies + HZ;
 	while (wait_cmd_done < 1) {
-- 
1.7.0

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux