All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Add mdiobus_modify_changed() helper
@ 2021-10-06 12:18 Russell King (Oracle)
  2021-10-06 12:19 ` [PATCH v2 net-next 1/2] net: mdio: add mdiobus_modify_changed() Russell King (Oracle)
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Russell King (Oracle) @ 2021-10-06 12:18 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Sean Anderson
  Cc: David S. Miller, Jakub Kicinski, netdev

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.

v2: fix build warnings in patch2, add Andrew's RB to patch 1

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

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH net-next 0/2] Add mdiobus_modify_changed() helper
@ 2021-10-05 15:32 Russell King (Oracle)
  0 siblings, 0 replies; 6+ messages in thread
From: Russell King (Oracle) @ 2021-10-05 15:32 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Sean Anderson
  Cc: David S. Miller, Jakub Kicinski, netdev

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(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-07  1:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 12:18 [PATCH net-next 0/2] Add mdiobus_modify_changed() helper Russell King (Oracle)
2021-10-06 12:19 ` [PATCH v2 net-next 1/2] net: mdio: add mdiobus_modify_changed() Russell King (Oracle)
2021-10-06 12:19 ` [PATCH v2 net-next 2/2] net: phylink: use mdiobus_modify_changed() helper Russell King (Oracle)
2021-10-06 21:14   ` Andrew Lunn
2021-10-07  1:10 ` [PATCH net-next 0/2] Add " patchwork-bot+netdevbpf
  -- strict thread matches above, loose matches on Subject: below --
2021-10-05 15:32 Russell King (Oracle)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.