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)
commit69500a0e5f5d6fa57ec660ccdf1c11381e65fabc
tree0ba1f1b948b800b2f774df10d57db37a2093f875
parent6bdfc7027887d4f5dd5ccf310c64fb358c626aa6
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: 086fb8f880e5 ("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