amd-xgbe-phy: On suspend, save CTRL1 reg for use on resume
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 16 Jan 2015 18:46:39 +0000 (12:46 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Jan 2015 03:24:19 +0000 (22:24 -0500)
commit03e50fd7b18351ab4766d4d0f7d25c5b4fefa9d9
tree1db0e5d28e034846bb029989193c70bae657958b
parent94c043e53324478ed8ba33757dd7bc03298c83c7
amd-xgbe-phy: On suspend, save CTRL1 reg for use on resume

Reads to registers are undefined when the PCS is powered down. To be
safe, save the CTRL1 register used for power down during suspend and
restore that value during resume.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/amd-xgbe-phy.c