ath9k: bring back direction setting in ath9k_{start_stop}
authorGiedrius Statkevičius <giedrius.statkevicius@gmail.com>
Thu, 1 Sep 2016 17:47:02 +0000 (20:47 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 7 Sep 2016 13:21:04 +0000 (16:21 +0300)
commite34f2ff40e0339f6a379e1ecf49e8f2759056453
tree11fe0754276fb4b5c9c7e9b4708488137f98ff8e
parentdb7b542e4a789156a4fb61278f2074795fe2eb9c
ath9k: bring back direction setting in ath9k_{start_stop}

A regression was introduced in commit id 79d4db1214a ("ath9k: cleanup
led_pin initial") that broken the WLAN status led on my laptop with
AR9287 after suspending and resuming.

Steps to reproduce:
* Suspend (laptop)
* Resume (laptop)
* Observe that the WLAN led no longer turns ON/OFF depending on the
  status and is always red

Even though for my case it only needs to be set to OUT in ath9k_start
but for consistency bring back the IN direction setting as well.

Fixes: 79d4db1214a0 ("ath9k: cleanup led_pin initial")
Cc: Miaoqing Pan <miaoqing@codeaurora.org>
Cc: Kalle Valo <kvalo@qca.qualcomm.com>
Cc: <stable@vger.kernel.org> # 4.7+
Link: https://bugzilla.kernel.org/show_bug.cgi?id=151711
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
[kvalo@qca.qualcomm.com: improve commit log]
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/main.c