phy: fix EEE checks inside the phy_init_eee.
authorGiuseppe CAVALLARO <[email protected]>
Tue, 26 Aug 2014 07:26:52 +0000 (09:26 +0200)
committerDavid S. Miller <[email protected]>
Wed, 27 Aug 2014 23:29:39 +0000 (16:29 -0700)
commit7a4cecf74c165653b2d01301b301a8659438217e
tree26b0aa3fd7c4b63a98fcf830bcfba5a49c7ac20a
parent2d39d120781a5770573dc6ed672a5a562f541aea
phy: fix EEE checks inside the phy_init_eee.

According to the Std 802.3az if the EEE Adv (Reg 7.60), Link partner ability
(Reg 7.61) and EEE capability (Register 3.20) bits return 0 this  means no EEE
is supported. So this patch fixes the checks inside the phy_init_eee function.

Signed-off-by: Nandini Sharma <[email protected]>
Signed-off-by: Giuseppe Cavallaro <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/phy/phy.c