aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/652-0062-rtl8xxxu-Reset-8188eu-REG_GPIO_MUXCFG-on-power-off.patch
blob: f09b30cf976b1e7cad15c32c9af2336131924702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 8953c3173a1b365db19346f31857c10c1439e281 Mon Sep 17 00:00:00 2001
From: Jes Sorensen <Jes.Sorensen@redhat.com>
Date: Tue, 30 Aug 2016 17:30:14 -0400
Subject: [PATCH] rtl8xxxu: Reset 8188eu REG_GPIO_MUXCFG on power off

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
@@ -1363,6 +1363,8 @@ void rtl8188eu_power_off(struct rtl8xxxu
 
 	rtl8xxxu_write8(priv, REG_RSV_CTRL, 0x00);
 
+	rtl8xxxu_write32(priv, REG_GPIO_MUXCFG, 0x00000000);
+
 	val16 = rtl8xxxu_read16(priv, REG_APS_FSMCO);
 	val16 |= APS_FSMCO_ENABLE_POWERDOWN | APS_FSMCO_HW_POWERDOWN;
 	rtl8xxxu_write16(priv, REG_APS_FSMCO, val16);