]> git.baikalelectronics.ru Git - kernel.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)
commit5f74bc69652ca7f89f9f85488c89e34983c6178f
tree954313a4638dfca0e7cab923dff7057c28789641
parenta44c9efa1dc85200ea1585a4739f16776f92b4f4
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