Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] dpll: zl3073x: add device reset via devlink reload
@ 2026-12-05  8:38 Ivan Vecera
  2026-12-05  8:38 ` [PATCH net-next v2 1/3] dpll: zl3073x: factor device CPU reset into a helper Ivan Vecera
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ivan Vecera @ 2026-12-05  8:38 UTC (permalink / raw)
  To: netdev
  Cc: Jiri Pirko, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Willem de Bruijn, Simon Horman, Jonathan Corbet,
	Shuah Khan, Randy Dunlap, Min Li, Vadim Fedorenko,
	Arkadiusz Kubalewski, linux-doc

The ZL3073x chips can reboot the firmware and reload the whole
configuration from flash. This series exposes this full device reset
through the devlink 'fw_activate' reload action. As the reset affects
the whole chip, devlink is used rather than the per-DPLL netlink
interface.

Patch 1 factors the HW register sequence used by
zl3073x_flash_mode_leave() to reset the device CPU into a reusable
helper. Patch 2 makes the driver track whether its cached device state
is valid, so that the state is fetched again after a reset. Patch 3
adds the 'fw_activate' reload action and documents the supported
reload actions.

Changes in v2:
- Addressed the Sashiko review: patch 2 keeps the cached state across
  a DRIVER_REINIT reload, patch 1 comments the wait after the reset;
  see the patches for details

v1: https://lore.kernel.org/netdev/20261203180627.215256-1-ivecera@redhat.com/

Ivan Vecera (3):
  dpll: zl3073x: factor device CPU reset into a helper
  dpll: zl3073x: track whether the cached device state is valid
  dpll: zl3073x: add device reset via devlink reload

 Documentation/networking/devlink/zl3073x.rst | 25 ++++++
 drivers/dpll/zl3073x/core.c                  | 81 ++++++++++++++++---
 drivers/dpll/zl3073x/core.h                  | 10 +--
 drivers/dpll/zl3073x/devlink.c               | 81 +++++++++++++------
 drivers/dpll/zl3073x/flash.c                 | 84 +++++---------------
 5 files changed, 181 insertions(+), 100 deletions(-)


base-commit: 503f683265b31ee4f3207752129242512f30196c
-- 
2.56.1


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

end of thread, other threads:[~2026-12-05  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  8:38 [PATCH net-next v2 0/3] dpll: zl3073x: add device reset via devlink reload Ivan Vecera
2026-12-05  8:38 ` [PATCH net-next v2 1/3] dpll: zl3073x: factor device CPU reset into a helper Ivan Vecera
2026-12-05  8:38 ` [PATCH net-next v2 2/3] dpll: zl3073x: track whether the cached device state is valid Ivan Vecera
2026-12-05  8:39 ` [PATCH net-next v2 3/3] dpll: zl3073x: add device reset via devlink reload Ivan Vecera

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