diff options
author | Sujith.Manoharan@atheros.com <Sujith.Manoharan@atheros.com> | 2010-05-11 16:24:43 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-12 16:39:06 -0400 |
commit | d8c49ffb2e2a47b23fec7f469435e7b112e2e569 (patch) | |
tree | e10f7f1318597dd47982e2043355ff2d89173728 /drivers/net/wireless/ath/ath9k/htc_hst.h | |
parent | 47fce026d5de5d11e161da73208171e9c91b659a (diff) | |
download | kernel_samsung_tuna-d8c49ffb2e2a47b23fec7f469435e7b112e2e569.zip kernel_samsung_tuna-d8c49ffb2e2a47b23fec7f469435e7b112e2e569.tar.gz kernel_samsung_tuna-d8c49ffb2e2a47b23fec7f469435e7b112e2e569.tar.bz2 |
ath9k_htc: Fix target ready race condition
The ready message from the target could be processed
before the host HW init has completed. In this case,
htc_process_target_rdy() would assume the target has timed
out, when it hasn't. Fix this by checking if the target
has sent the ready message properly.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_hst.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_hst.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.h b/drivers/net/wireless/ath/ath9k/htc_hst.h index d216c0f..4f1cdb0 100644 --- a/drivers/net/wireless/ath/ath9k/htc_hst.h +++ b/drivers/net/wireless/ath/ath9k/htc_hst.h @@ -147,6 +147,7 @@ struct htc_target { u16 credits; u16 credit_size; u8 htc_flags; + atomic_t tgt_ready; }; enum htc_msg_id { |