public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v0 RFC RFT net-next 0/5] Use MMD/C45 helpers
@ 2022-04-07 22:50 Andrew Lunn
  2022-04-07 22:50 ` [PATCH v0 RFC RFT net-next 1/5] net: phylink: Convert to mdiobus_c45_{read|write} Andrew Lunn
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Andrew Lunn @ 2022-04-07 22:50 UTC (permalink / raw)
  To: netdev
  Cc: Vladimir Oltean, Florian Fainelli, Jose Abreu, Heiner Kallweit,
	Russell King, bcm-kernel-feedback-list, Andrew Lunn

MDIO busses can perform two sorts of bus transaction, defined in
clause 22 and clause 45 of 802.3. This results in two register
addresses spaces. The current driver structure for indicating if C22
or C45 should be used is messy, and many C22 only bus drivers will
wrongly interpret a C45 transaction as a C22 transaction.

This patchset is a preparation step to cleanup the situation. It
converts MDIO bus users to make use of existing _mmd and _c45 helpers
to perform accesses to C45 registers. This will later allow C45 and
C22 to be kept separate.

I don't have any of this hardware, so request testing where possible.

Andrew Lunn (5):
  net: phylink: Convert to mdiobus_c45_{read|write}
  net: phy: Convert to mdiobus_c45_{read|write}
  net: phy: bcm87xx: Use mmd helpers
  net: dsa: sja1105: Convert to mdiobus_c45_read
  net: pcs: pcs-xpcs: Convert to mdiobus_c45_read

 drivers/net/dsa/sja1105/sja1105_main.c |  5 ++--
 drivers/net/pcs/pcs-xpcs.c             |  6 ++---
 drivers/net/phy/bcm87xx.c              |  5 ++--
 drivers/net/phy/phy.c                  | 18 +++++++++------
 drivers/net/phy/phylink.c              | 32 ++++++++++++++------------
 5 files changed, 34 insertions(+), 32 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-04-09 11:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-07 22:50 [PATCH v0 RFC RFT net-next 0/5] Use MMD/C45 helpers Andrew Lunn
2022-04-07 22:50 ` [PATCH v0 RFC RFT net-next 1/5] net: phylink: Convert to mdiobus_c45_{read|write} Andrew Lunn
2022-04-07 22:50 ` [PATCH v0 RFC RFT net-next 2/5] net: phy: " Andrew Lunn
2022-04-07 22:50 ` [PATCH v0 RFC RFT net-next 3/5] net: phy: bcm87xx: Use mmd helpers Andrew Lunn
2022-04-07 22:50 ` [PATCH v0 RFC RFT net-next 4/5] net: dsa: sja1105: Convert to mdiobus_c45_read Andrew Lunn
2022-04-09 11:55   ` Vladimir Oltean
2022-04-07 22:50 ` [PATCH v0 RFC RFT net-next 5/5] net: pcs: pcs-xpcs: " Andrew Lunn
2022-04-09 11:55   ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox