diff options
| author | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-06 18:31:09 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2024-02-10 15:36:19 +0000 |
| commit | 9b1d5e055508393561e26bd1720f4c2639b03b1a (patch) | |
| tree | 3d1d4cb594981c182667d1b0eb6afa3721b1e695 /drivers/net/phy/broadcom.c | |
| parent | dd87eaa137870bfc7aab38953384768bf1c87a3f (diff) | |
| download | linux-next-9b1d5e055508393561e26bd1720f4c2639b03b1a.tar.gz linux-next-9b1d5e055508393561e26bd1720f4c2639b03b1a.zip | |
net: phy: provide whether link has changed in c37_read_status
Some PHY driver might require additional regs call after
genphy_c37_read_status() is called.
Expand genphy_c37_read_status to provide a bool wheather the link has
changed or not to permit PHY driver to skip additional regs call if
nothing has changed.
Every user of genphy_c37_read_status() is updated with the new
additional bool.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/broadcom.c')
| -rw-r--r-- | drivers/net/phy/broadcom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 312a8bb35d78..370e4ed45098 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -665,10 +665,11 @@ static int bcm54616s_config_aneg(struct phy_device *phydev) static int bcm54616s_read_status(struct phy_device *phydev) { struct bcm54616s_phy_priv *priv = phydev->priv; + bool changed; int err; if (priv->mode_1000bx_en) - err = genphy_c37_read_status(phydev); + err = genphy_c37_read_status(phydev, &changed); else err = genphy_read_status(phydev); |
