ar71xx: WNR2200: remove redundant GPIO for WLAN LED
authorMichal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Fri, 2 Aug 2019 15:12:34 +0000 (17:12 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 31 Aug 2019 10:08:23 +0000 (12:08 +0200)
commitdddb43775f59271d86ebd724f059aff38517d20b
treeddeffa6184a699d9104b551afa53a9f3f23fd07d
parent926157c2ccb02aa06b343662ecbd2571faf6eddd
ar71xx: WNR2200: remove redundant GPIO for WLAN LED

Without this patch, an extra entry appears for AR9287 GPIO
that duplicates WLAN LED but in fact drives nothing:

gpiochip1: GPIOs 502-511, ath9k-phy0:
 gpio-502 (                    |netgear:blue:wlan   ) out hi
 gpio-503 (                    |netgear:amber:test  ) out hi
 gpio-504 (                    |netgear:green:power ) out lo
 gpio-505 (                    |rfkill              ) in  hi
 gpio-507 (                    |wps                 ) in  hi
 gpio-508 (                    |reset               ) in  hi
 gpio-510 (                    |ath9k-phy0          ) out hi <===!

The pin pointed above is default LED GPIO (8) for AR9287.
For WNR2200 it is not connected anywhere - pin 0 drives blue WLAN
LED instead - but initialization code is missing that information.

This fix calls ap9x_pci_setup_wmac_led_pin() function at device
setup, forcing WLAN LED pin to be 0 and removing redundant entry.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c