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)
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

Simple merge