[PATCH RFC net-next 0/3] net: dsa: mxl862xx: support firmware update

From: Daniel Golle

Date: Tue Jul 07 2026 - 10:44:00 EST


The MaxLinear MxL862xx switches are running a ZephyrOS-based firmware
which is stored on a dedicated SPI flash chip connected to the switch IC.
When using the switch with DSA a method to allow the host to update the
firmware is needed.

DSA currently doesn't support devlink's flash_update method and
implementing the necessary teardown and subsequent re-probe is not
trivial.

This series is marked as RFC as I'd like to receive feedback regarding
the use of devlink and the teardown/re-probe implementation.

Daniel Golle (3):
net: dsa: wire flash_update devlink callback to drivers
net: dsa: mxl862xx: add SMDIO clause-22 register access
net: dsa: mxl862xx: add devlink flash_update and info_get

drivers/net/dsa/mxl862xx/Makefile | 2 +-
drivers/net/dsa/mxl862xx/mxl862xx-cmd.h | 1 +
drivers/net/dsa/mxl862xx/mxl862xx-fw.c | 434 +++++++++++++++++++++++
drivers/net/dsa/mxl862xx/mxl862xx-fw.h | 15 +
drivers/net/dsa/mxl862xx/mxl862xx-host.c | 42 +++
drivers/net/dsa/mxl862xx/mxl862xx-host.h | 2 +
drivers/net/dsa/mxl862xx/mxl862xx.c | 3 +
drivers/net/dsa/mxl862xx/mxl862xx.h | 2 +
include/net/dsa.h | 3 +
net/dsa/devlink.c | 13 +
10 files changed, 516 insertions(+), 1 deletion(-)
create mode 100644 drivers/net/dsa/mxl862xx/mxl862xx-fw.c
create mode 100644 drivers/net/dsa/mxl862xx/mxl862xx-fw.h

--
2.55.0