OSDN Git Service

net: phy: Allow EEE for all RGMII variants
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 15 May 2015 23:30:41 +0000 (16:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2015 01:20:47 +0000 (21:20 -0400)
commit7e14069651591c81046ffaec13c3dac8cb70f5fb
tree0ba1f1b948b800b2f774df10d57db37a2093f875
parent1f9993f6825f9cb93f75f794b66e7428dfc72467
net: phy: Allow EEE for all RGMII variants

RGMII interfaces come in multiple flavors: RGMII with transmit or
receive internal delay, no delays at all, or delays in both direction.

This change extends the initial check for PHY_INTERFACE_MODE_RGMII to
cover all of these variants since EEE should be allowed for any of these
modes, since it is a property of the RGMII, hence Gigabit PHY capability
more than the RGMII electrical interface and its delays.

Fixes: a59a4d192166 ("phy: add the EEE support and the way to access to the MMD registers")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c