r8152: adjust U2P3 for RTL8153
authorhayeswang <hayeswang@realtek.com>
Fri, 9 Jun 2017 09:11:43 +0000 (17:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2017 19:37:01 +0000 (15:37 -0400)
commit3cb3234eed89c10d706d23f5355596efc07dc83c
tree026680281e1e1eafa662367528096e6ebec95bd9
parent02552754a7aca1756b1b229b48d2a547880ac95a
r8152: adjust U2P3 for RTL8153

Use another way to keep disabling the U2P3 for both RTL_VER_03 and
RTL_VER_04.

Move enabling U2P3 from r8153_init() to r8153_hw_phy_cfg(). The
engineer ask the setting should be done after PHY settings.

Disable U2P3 first in rtl8153_up().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c