]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: phy: allow phy_init_eee() to work with internal PHYs
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 23 Aug 2014 01:55:44 +0000 (18:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Aug 2014 18:39:09 +0000 (11:39 -0700)
commita9f6309585cbefa4a7f08c9017ca482c3222323a
tree954313a4638dfca0e7cab923dff7057c28789641
parent66ce7fb9807b036058aa380bfd2b3851ae25ce39
net: phy: allow phy_init_eee() to work with internal PHYs

Internal PHYs do not have any specific phy_interface_t defined because
they are within an Ethernet MAC or a larger IC, they will fail the early
check in phy_init_eee(). Allow these PHYs to proceed with EEE
initialization and report error/success by checking the standard C45
EEE-related registers.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c