diff mbox

ath9k: fix GPIO mask for AR9462 and AR9565

Message ID 1470288583349.11756@qti.qualcomm.com (mailing list archive)
State Not Applicable
Delegated to: Kalle Valo
Headers show

Commit Message

miaoqing pan Aug. 4, 2016, 5:30 a.m. UTC
Sorry, try the patch.  AR5416 will invoke ath9k_hw_gpio_get() before gpio  initialized correctly.

Thanks,
Miaoqing

Comments

Stefan Lippers-Hollmann Aug. 4, 2016, 6:24 a.m. UTC | #1
Hi

On 2016-08-04, Pan, Miaoqing wrote:
> Sorry, try the patch.  AR5416 will invoke ath9k_hw_gpio_get() before gpio  initialized correctly.
> 
> Thanks,
> Miaoqing

Thanks a lot, the patch appears to work. Feel free to add

	Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>

and please also send it to stable-4.7 (confirmed working).

	Cc: stable-4.7+ <stable@vger.kernel.org> #4.7+

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

Patch

--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2482,6 +2482,8 @@  int ath9k_hw_fill_cap_info(struct ath_hw *ah)
 		return -EINVAL;
 	}
 
+	ath9k_gpio_cap_init(ah);
+
 	if (AR_SREV_9485(ah) ||
 	    AR_SREV_9285(ah) ||
 	    AR_SREV_9330(ah) ||
@@ -2531,8 +2533,6 @@  int ath9k_hw_fill_cap_info(struct ath_hw *ah)
 	else
 		pCap->hw_caps &= ~ATH9K_HW_CAP_HT;
 
-	ath9k_gpio_cap_init(ah);
-
 	if (AR_SREV_9160_10_OR_LATER(ah) || AR_SREV_9100(ah))
 		pCap->rts_aggr_limit = ATH_AMPDU_LIMIT_MAX;
 	else