mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
net: stmmac: remove phylink_config.pcs_poll usage
Phylink will use PCS polling whenever the PCS's poll member is set, so setting phylink_config.pcs_poll as well is redundant. Tested-by: Wong Vee Khee <vee.khee.wong@linux.intel.com> # Intel EHL Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fe70fb74b5
commit
f4c296c909
@@ -1181,7 +1181,6 @@ static int stmmac_phy_setup(struct stmmac_priv *priv)
|
||||
|
||||
priv->phylink_config.dev = &priv->dev->dev;
|
||||
priv->phylink_config.type = PHYLINK_NETDEV;
|
||||
priv->phylink_config.pcs_poll = true;
|
||||
if (priv->plat->mdio_bus_data)
|
||||
priv->phylink_config.ovr_an_inband =
|
||||
mdio_bus_data->xpcs_an_inband;
|
||||
|
||||
Reference in New Issue
Block a user