653-0053-rtl8xxxu-Reset-8188eu-REG_GPIO_MUXCFG-on-power-off.patch 830 B

123456789101112131415161718192021
  1. From 89bc2e59923ffc65b4b4fc123ef152c1a9a49639 Mon Sep 17 00:00:00 2001
  2. From: Jes Sorensen <Jes.Sorensen@redhat.com>
  3. Date: Tue, 30 Aug 2016 17:30:14 -0400
  4. Subject: [PATCH] rtl8xxxu: Reset 8188eu REG_GPIO_MUXCFG on power off
  5. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
  6. ---
  7. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  10. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  11. @@ -1363,6 +1363,8 @@ void rtl8188eu_power_off(struct rtl8xxxu
  12. rtl8xxxu_write8(priv, REG_RSV_CTRL, 0x00);
  13. + rtl8xxxu_write32(priv, REG_GPIO_MUXCFG, 0x00000000);
  14. +
  15. val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO);
  16. val16 |= APS_FSMCO_ENABLE_POWERDOWN | APS_FSMCO_HW_POWERDOWN;
  17. rtl8xxxu_write16(priv, REG_APS_FSMCO, val16);