linux/drivers/staging
Martin Kaiser 52d5896ba2 staging: r8188eu: fix led register settings
commit 12c6223fc1 upstream.

Using an InterTech DMG-02 dongle, the led remains on when the system goes
into standby mode. After wakeup, it's no longer possible to control the
led.

It turned out that the register settings to enable or disable the led were
not correct. They worked for some dongles like the Edimax V2 but not for
others like the InterTech DMG-02.

This patch fixes the register settings. Bit 3 in the led_cfg2 register
controls the led status, bit 5 must always be set to be able to control
the led, bit 6 has no influence on the led. Setting the mac_pinmux_cfg
register is not necessary.

These settings were tested with Edimax V2 and InterTech DMG-02.

Cc: stable@vger.kernel.org
Fixes: 8cd574e6af ("staging: r8188eu: introduce new hal dir for RTL8188eu driver")
Suggested-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Michael Straube <straube.linux@gmail.com> # InterTech DMG-02,
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221015151115.232095-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-21 17:48:09 +01:00
..
axis-fifo
board
emxx_udc
fbtft
fieldbus
gdm724x
greybus Staging driver changes for 6.1-rc1 2022-10-08 09:19:24 -07:00
iio
ks7010
media media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
most
nvec
octeon
olpc_dcon
pi433
qlge
r8188eu staging: r8188eu: fix led register settings 2022-12-21 17:48:09 +01:00
rtl8192e staging: rtl8192e: remove bogus ssid character sign test 2022-10-25 19:13:48 +02:00
rtl8192u
rtl8712
rtl8723bs Staging driver changes for 6.1-rc1 2022-10-08 09:19:24 -07:00
rts5208
sm750fb Staging driver changes for 6.1-rc1 2022-10-08 09:19:24 -07:00
vc04_services
vme_user
vt6655
vt6656
wlan-ng Staging driver changes for 6.1-rc1 2022-10-08 09:19:24 -07:00
Kconfig Here's the main clk pull request for this merge window. We have some 2022-10-08 10:06:48 -07:00
Makefile Here's the main clk pull request for this merge window. We have some 2022-10-08 10:06:48 -07:00