2c7413e35b4ea6a6667262d1078900efd25450e0
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 653-0050-rtl8xxxu-Clear-SYS_FUNC_UPLL-during-power-up-on-8188.patch
1 From 59a94447d4a98ab56cefe0b277251c660a333ce0 Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Tue, 30 Aug 2016 14:33:18 -0400
4 Subject: [PATCH] rtl8xxxu: Clear SYS_FUNC_UPLL during power up on 8188eu
5
6 The vendor driver doesn't set this bit during BB config, so avoid
7 setting it here too.
8
9 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
10 ---
11 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 1 +
12 1 file changed, 1 insertion(+)
13
14 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
15 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
16 @@ -561,6 +561,7 @@ static void rtl8188eu_init_phy_bb(struct
17 val16 = rtl8xxxu_read16(priv, REG_SYS_FUNC);
18 val16 |= (SYS_FUNC_USBA | SYS_FUNC_USBD |
19 SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB);
20 + val16 &= ~SYS_FUNC_UPLL;
21 rtl8xxxu_write16(priv, REG_SYS_FUNC, val16);
22
23 rtl8xxxu_init_phy_regs(priv, rtl8188eu_phy_init_table);