net: phy: provide whether link has changed in c37_read_status
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 6 Feb 2024 17:31:09 +0000 (18:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Feb 2024 15:36:19 +0000 (15:36 +0000)
commit9b1d5e055508393561e26bd1720f4c2639b03b1a
tree3d1d4cb594981c182667d1b0eb6afa3721b1e695
parentdd87eaa137870bfc7aab38953384768bf1c87a3f
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>
drivers/net/phy/broadcom.c
drivers/net/phy/phy_device.c
drivers/net/phy/qcom/at803x.c
include/linux/phy.h