[PATCH 0/1] net: dsa: b53: mmap: add dsa switch ops

From: Álvaro Fernández Rojas
Date: Thu Mar 23 2023 - 13:02:54 EST


B53 MMAP switches have a MDIO Mux bus controller which should be used instead
of the default phy_read/phy_write ops used in the rest of the B53 controllers.
Therefore, in order to use the proper MDIO Mux bus controller we need to
replicate the default B53 DSA switch ops removing the phy_read/phy_write
entries.
Without this, when external switches are configured together with B53 MMAP
internal switches the device will hang on phy_read/phy_write ops.

This is an alternative to:
- https://patchwork.kernel.org/project/netdevbpf/cover/20230317113427.302162-1-noltari@xxxxxxxxx/
- https://patchwork.kernel.org/project/netdevbpf/patch/20230317113427.302162-2-noltari@xxxxxxxxx/
- https://patchwork.kernel.org/project/netdevbpf/patch/20230317113427.302162-3-noltari@xxxxxxxxx/
- https://patchwork.kernel.org/project/netdevbpf/patch/20230317113427.302162-4-noltari@xxxxxxxxx/
As discussed, it was an ABI break and not the correct way of fixing the issue.

And also to:
- https://patchwork.kernel.org/project/netdevbpf/patch/20230320182813.963508-1-noltari@xxxxxxxxx/

Álvaro Fernández Rojas (1):
net: dsa: b53: mmap: add dsa switch ops

drivers/net/dsa/b53/b53_common.c | 22 +++++++++---------
drivers/net/dsa/b53/b53_mmap.c | 40 ++++++++++++++++++++++++++++++++
drivers/net/dsa/b53/b53_priv.h | 11 +++++++++
3 files changed, 62 insertions(+), 11 deletions(-)

--
2.30.2