diff options
author | Murali Krishna Policharla <murali.policharla@broadcom.com> | 2020-03-27 21:55:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-27 16:07:24 -0700 |
commit | ab41ca3455a208392ce95f4086d5708dc37bff86 (patch) | |
tree | c784a5ae81ff8d6a7d1d2f20864a2aa6ea10d912 /drivers/net/phy/bcm7xxx.c | |
parent | 22f33971aa47a9868453850c434bbc080b804133 (diff) | |
download | linux-ab41ca3455a208392ce95f4086d5708dc37bff86.tar.bz2 |
net: phy: bcm7xx: add jumbo frame configuration to PHY
The BCM7XX PHY family requires special configuration to pass jumbo
frames. Do that during initial PHY setup.
Signed-off-by: Murali Krishna Policharla <murali.policharla@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/bcm7xxx.c')
-rw-r--r-- | drivers/net/phy/bcm7xxx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c index af8eabe7a6d4..692048d86ab1 100644 --- a/drivers/net/phy/bcm7xxx.c +++ b/drivers/net/phy/bcm7xxx.c @@ -181,6 +181,10 @@ static int bcm7xxx_28nm_config_init(struct phy_device *phydev) if (ret) return ret; + ret = bcm_phy_enable_jumbo(phydev); + if (ret) + return ret; + ret = bcm_phy_downshift_get(phydev, &count); if (ret) return ret; |