rtl8xxxu: Do not set LDOA15 / LDOV12 on 8192eu
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 31 Mar 2016 21:08:42 +0000 (17:08 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Apr 2016 16:41:21 +0000 (19:41 +0300)
Per the vendor driver, it looks like the 8192eu doesn't have LDOA15 /
LDOV12 registers.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c

index f2e32a78e43cbbe20a58cd10625e2200a4d88b98..333addd3d46a2b592ae5471db355e122df4bb62b 100644 (file)
@@ -3283,7 +3283,7 @@ static int rtl8xxxu_init_phy_bb(struct rtl8xxxu_priv *priv)
                rtl8xxxu_write32(priv, REG_MAC_PHY_CTRL, val32);
        }
 
-       if (priv->rtl_chip != RTL8723B) {
+       if (priv->rtl_chip != RTL8723B && priv->rtl_chip != RTL8192E) {
                ldoa15 = LDOA15_ENABLE | LDOA15_OBUF;
                ldov12d = LDOV12D_ENABLE | BIT(2) | (2 << LDOV12D_VADJ_SHIFT);
                ldohci12 = 0x57;