Skip to content

dpll: zl3073x: consolidate chip info and add temperature reporting

Ivan Vecera lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2dpll: zl3073x: detect DPLL channel count from chip ID at runtimedrivers/dpll/zl3073x/core.c drivers/dpll/zl3073x/core.h drivers/dpll/zl3073x/i2c.c +1 more+82 -1670 repliesApplied
2/2dpll: zl3073x: add die temperature reporting for supported chipsdrivers/dpll/zl3073x/core.c drivers/dpll/zl3073x/core.h drivers/dpll/zl3073x/dpll.c +2 more+42 -140 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon Horman
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] dpll: zl3073x: consolidate chip info and add temperature reporting

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(-)
Signature · 1 line
2.52.0