Merge branch 'r8152-save-EEE'
authorDavid S. Miller <davem@davemloft.net>
Fri, 23 Aug 2019 21:25:23 +0000 (14:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Aug 2019 21:25:23 +0000 (14:25 -0700)
commitaa19d1f1042e52f0c2419e6242958b594d761eeb
tree1485981bd3bcfa78838d2bb78c0aa612d923bfae
parent6d24e14140053febc5ac1ce46baca6a4334c5f6c
parente7bde56b7446ccda351a216ff55af09a96fea940
Merge branch 'r8152-save-EEE'

Hayes Wang says:

====================
r8152: save EEE

v4:
For patch #2, remove redundant calling of "ocp_reg_write(tp, OCP_EEE_ADV, 0)".

v3:
For patch #2, fix the mistake caused by copying and pasting.

v2:
Adjust patch #1. The EEE has been disabled in the beginning of
r8153_hw_phy_cfg() and r8153b_hw_phy_cfg(), so only check if
it is necessary to enable EEE.

Add the patch #2 for the helper function.

v1:
Saving the settings of EEE to avoid they become the default settings
after reset_resume().
====================

Signed-off-by: David S. Miller <davem@davemloft.net>