mbox series

[net-next,0/2] Add mdiobus_modify_changed() helper

Message ID YVxwKVZVbmC78fKK@shell.armlinux.org.uk (mailing list archive)
Headers show
Series Add mdiobus_modify_changed() helper | expand

Message

Russell King (Oracle) Oct. 5, 2021, 3:32 p.m. UTC
Hi,

Sean Anderson's recent patch series is introducing more read-write
operations on the MDIO bus that only need to happen if a change is
being made.

We have similar logic in __mdiobus_modify_changed(), but we didn't
add its correponding locked variant mdiobus_modify_changed() as we
had very few users. Now that we are getting more, let's add the
helper.

 drivers/net/phy/mdio_bus.c | 22 ++++++++++++++++++++++
 drivers/net/phy/phylink.c  | 28 ++++------------------------
 include/linux/mdio.h       |  2 ++
 3 files changed, 28 insertions(+), 24 deletions(-)