public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] dpll: zl3073x: consolidate chip info and add temperature reporting
@ 2026-02-27 10:52 Ivan Vecera
  2026-02-27 10:52 ` [PATCH net-next 1/2] dpll: zl3073x: detect DPLL channel count from chip ID at runtime Ivan Vecera
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ivan Vecera @ 2026-02-27 10:52 UTC (permalink / raw)
  To: netdev
  Cc: Prathosh Satish, Vadim Fedorenko, Arkadiusz Kubalewski,
	Jiri Pirko, Petr Oros, Michal Schmidt, linux-kernel

This series refactors the ZL3073x chip variant handling and adds die
temperature reporting for chips that support it.

Patch 1 replaces the five per-variant chip_info structures and their
exported symbols with a single consolidated lookup table.  The chip
variant is now detected at runtime from the chip ID register rather
than being selected at compile time via bus driver match data. This
simplifies the I2C/SPI drivers and makes adding new variants a
single-line table addition.  A flags field replaces the hardcoded
chip_id switch in zl3073x_dev_is_ref_phase_comp_32bit().

Patch 2 uses the new flags infrastructure to add die temperature
reporting for chip variants that provide a temperature status register.
The temp_get callback is conditionally set during device registration
based on the ZL3073X_FLAG_DIE_TEMP chip flag.

Ivan Vecera (2):
  dpll: zl3073x: detect DPLL channel count from chip ID at runtime
  dpll: zl3073x: add die temperature reporting for supported chips

 drivers/dpll/zl3073x/core.c | 118 ++++++++++--------------------------
 drivers/dpll/zl3073x/core.h |  59 +++++++++---------
 drivers/dpll/zl3073x/dpll.c |  28 ++++++++-
 drivers/dpll/zl3073x/dpll.h |   2 +
 drivers/dpll/zl3073x/i2c.c  |  37 ++++-------
 drivers/dpll/zl3073x/regs.h |   2 +
 drivers/dpll/zl3073x/spi.c  |  37 ++++-------
 7 files changed, 113 insertions(+), 170 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-03-03 11:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 10:52 [PATCH net-next 0/2] dpll: zl3073x: consolidate chip info and add temperature reporting Ivan Vecera
2026-02-27 10:52 ` [PATCH net-next 1/2] dpll: zl3073x: detect DPLL channel count from chip ID at runtime Ivan Vecera
2026-02-27 10:53 ` [PATCH net-next 2/2] dpll: zl3073x: add die temperature reporting for supported chips Ivan Vecera
2026-03-02 14:01 ` [PATCH net-next 0/2] dpll: zl3073x: consolidate chip info and add temperature reporting Simon Horman
2026-03-03 11:20 ` patchwork-bot+netdevbpf

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