diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-11-17 21:20:50 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-19 10:23:42 -0500 |
commit | da8fb123b041e487d28f54d3a77a15139cb9e3b9 (patch) | |
tree | d205b8cedc7349e075f71cef4a3249578d8cdb79 /drivers/net/wireless/ath/ath9k | |
parent | dd321acddc3be1371263b8c9e6c6f2af89f63d57 (diff) | |
download | op-kernel-dev-da8fb123b041e487d28f54d3a77a15139cb9e3b9.zip op-kernel-dev-da8fb123b041e487d28f54d3a77a15139cb9e3b9.tar.gz |
ath9k_hw: Fix regression in device reset
Commit "ath9k: improve suspend/resume reliability" broke ath9k_htc
and bringing up the device would hang indefinitely. Fix this.
Cc: stable@vger.kernel.org
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 8e1559a..1829b44 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -1456,7 +1456,7 @@ static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type) switch (type) { case ATH9K_RESET_POWER_ON: ret = ath9k_hw_set_reset_power_on(ah); - if (!ret) + if (ret) ah->reset_power_on = true; break; case ATH9K_RESET_WARM: |