]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:26:49 +0000 (14:26 -0400)
commitb23b97ca70a9fe03bb3e3e74bc8d120b0e15e4fb
tree78a6b0fa24b26f9b43306509fdea861dc075956a
parent645995e2934706449c4214a3f0f881d6c7fbc5fe
net: phy: Allow EEE for all RGMII variants

[ Upstream commit 7e14069651591c81046ffaec13c3dac8cb70f5fb ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/phy/phy.c