r8152: disable ALDPS and EEE before setting PHY
authorhayeswang <hayeswang@realtek.com>
Tue, 20 Sep 2016 08:22:09 +0000 (16:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2016 04:53:47 +0000 (00:53 -0400)
commitd768c61bc353a0e0de3f839e1de99eee7d4eca10
tree885917fa326fcdf4db2901c3266f6c24061c3072
parentaf0287ec10c62c84cc5cd1bad4fd37644a1ac41d
r8152: disable ALDPS and EEE before setting PHY

Disable ALDPS and EEE to avoid the possible failure when setting the PHY.

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