]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbed4da4e729197c6f5c70f7e0f056331de1934ea
tree11fe0754276fb4b5c9c7e9b4708488137f98ff8e
parentd02f736ae18027f698d6e28472e9a5b880293f83
ath9k: bring back direction setting in ath9k_{start_stop}

A regression was introduced in commit id f39e45dcb1b ("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: f39e45dcb1b2 ("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