aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/bcm-cygnus.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-11-22 11:40:56 -0800
committerDavid S. Miller <davem@davemloft.net>2016-11-24 15:45:53 -0500
commit99cec8a4dda28972067c274a4215422262dc5522 (patch)
treea7fdcd8b60eb83c0cea2c1968ad2fe154e885372 /drivers/net/phy/bcm-cygnus.c
parentnet: phy: broadcom: Add support code for downshift/Wirespeed (diff)
downloadlinux-dev-99cec8a4dda28972067c274a4215422262dc5522.tar.xz
linux-dev-99cec8a4dda28972067c274a4215422262dc5522.zip
net: phy: broadcom: Allow enabling or disabling of EEE
In preparation for adding support for Wirespeed/downshift, we need to change bcm_phy_eee_enable() to allow enabling or disabling EEE, so make the function take an extra enable/disable boolean parameter and rename it to illustrate it sets EEE, not necessarily just enables it. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/bcm-cygnus.c')
-rw-r--r--drivers/net/phy/bcm-cygnus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/bcm-cygnus.c b/drivers/net/phy/bcm-cygnus.c
index 49bbc6826883..196400cddf68 100644
--- a/drivers/net/phy/bcm-cygnus.c
+++ b/drivers/net/phy/bcm-cygnus.c
@@ -104,7 +104,7 @@ static int bcm_cygnus_config_init(struct phy_device *phydev)
return rc;
/* Advertise EEE */
- rc = bcm_phy_enable_eee(phydev);
+ rc = bcm_phy_set_eee(phydev, true);
if (rc)
return rc;