dpll: zl3073x: consolidate chip info and add temperature reporting
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
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dpll: zl3073x: detect DPLL channel count from chip ID at runtimedrivers/ drivers/ drivers/ +1 more | +82 | 0 replies | Applied |
| 2/2 | dpll: zl3073x: add die temperature reporting for supported chipsdrivers/ drivers/ drivers/ +2 more | +42 | 0 replies | Applied |
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.
| Patch | Simon Horman |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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