mbox series

[net-next,v1,0/5] Use MMD/C45 helpers

Message ID 20220430173037.156823-1-andrew@lunn.ch (mailing list archive)
Headers show
Series Use MMD/C45 helpers | expand

Message

Andrew Lunn April 30, 2022, 5:30 p.m. UTC
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.

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              | 36 ++++++++++++++------------
 drivers/net/phy/phy.c                  | 18 ++++++++-----
 drivers/net/phy/phylink.c              | 32 ++++++++++++-----------
 5 files changed, 52 insertions(+), 45 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org May 2, 2022, 11:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Sat, 30 Apr 2022 19:30:32 +0200 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,v1,1/5] net: phylink: Convert to mdiobus_c45_{read|write}
    https://git.kernel.org/netdev/net-next/c/70dcf3cdc342
  - [net-next,v1,2/5] net: phy: Convert to mdiobus_c45_{read|write}
    https://git.kernel.org/netdev/net-next/c/260bdfea873a
  - [net-next,v1,3/5] net: phy: bcm87xx: Use mmd helpers
    https://git.kernel.org/netdev/net-next/c/cad75717c71b
  - [net-next,v1,4/5] net: dsa: sja1105: Convert to mdiobus_c45_read
    https://git.kernel.org/netdev/net-next/c/639e4b93ab68
  - [net-next,v1,5/5] net: pcs: pcs-xpcs: Convert to mdiobus_c45_read
    https://git.kernel.org/netdev/net-next/c/d18af067c98e

You are awesome, thank you!