Skip to content

QorIQ TMU multi-sensor and HWMON support

Andrey Smirnov linux-pm lkml 9 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest12 patches 4 repliesApplied
  2. v712 patches 5 repliesSuperseded
  3. v6 posting 2/212 patches 0 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v6 posting 1/212 patches1 replySuperseded
v512 patches0 repliesSuperseded
v412 patches10 repliesSuperseded
v313 patches24 repliesSuperseded
v213 patches0 repliesSuperseded
v111 of 12 patches4 repliesSuperseded

Changes in v8 from the cover letter

- Rebased on top of 12/05 linux-next

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/12thermal: qoriq: Add local struct device pointerdrivers/thermal/qoriq_thermal.c+6 -50 replies
2/12thermal: qoriq: Don't store struct thermal_zone_device referencedrivers/thermal/qoriq_thermal.c+11 -60 replies
3/12thermal: qoriq: Add local struct qoriq_sensor pointerdrivers/thermal/qoriq_thermal.c+9 -50 replies
4/12thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_datadrivers/thermal/qoriq_thermal.c+8 -150 replies
5/12thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directlydrivers/thermal/qoriq_thermal.c+4 -40 replies
6/12thermal: qoriq: Pass data to qoriq_tmu_calibration() directlydrivers/thermal/qoriq_thermal.c+9 -100 replies
7/12thermal: qoriq: Drop unnecessary drvdata cleanupdrivers/thermal/qoriq_thermal.c+0 -20 replies
8/12thermal: qoriq: Convert driver to use regmap APIdrivers/thermal/qoriq_thermal.c+98 -1303 replies
9/12thermal: qoriq: Enable all sensors before registering themdrivers/thermal/qoriq_thermal.c+12 -190 replies
10/12thermal: qoriq: Do not report invalid temperature readingdrivers/thermal/qoriq_thermal.c+18 -10 replies
11/12thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()drivers/thermal/thermal_hwmon.c drivers/thermal/thermal_hwmon.h+35 -00 replies
12/12thermal: qoriq: Add hwmon supportdrivers/thermal/qoriq_thermal.c+6 -00 replies

Reviews trailers per patch

9 of 12 patches have a Reviewed-by or Acked-by.

PatchDaniel LezcanoLucas Stach
1/12A-b T-b
2/12A-b T-b
3/12
4/12
5/12A-b T-b
6/12R-b T-b
7/12R-b T-b
8/12R-b T-b
9/12T-b
10/12R-b T-b
11/12R-b T-b
12/12R-b T-b

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

Read the v8 thread

Cover letter [PATCH v8 00/12] QorIQ TMU multi-sensor and HWMON support

Everyone:

This series contains patches adding support for HWMON integration, bug fixes and general improvements (hopefully) for TMU driver I made while working on it on i.MX8MQ.

Feedback is welcome!

Thanks,
Andrey Smirnov

Changes since [v7]:

- Rebased on top of 12/05 linux-next

Changes since [v6]:

- Rebased on top of Zhang's "next" branch

- Added "thermal: qoriq: Drop unnecessary drvdata cleanup"

Changes since [v5]

- Rebased on recent linux-next, dropped "thermal: qoriq: Remove unnecessary DT node is NULL check" since it is already in the tree

- Dropped dependency on [rfc]

Changes since [v4]

- Collected Tested-by from Lucas

- Collected Reviewed-by from Daniel

- Converted "thermal: qoriq: Enable all sensors before registering them" to use if instead of switch statement for error checking

Changes since [v3]

- Series reabse on top of [rfc]

- Fixed incorrect goto label in "thermal: qoriq: Pass data to qoriq_tmu_calibration()"

- Added REGS_TRITSR() register description to "thermal: qoriq: Do not report invalid temperature reading"

- Reworded commit message of "thermal: qoriq: Remove unnecessary DT node is NULL check"

Changes since [v2]

- Patches rebased on v5.1-rc1

Changes since [v1]

- Rebased on "linus" branch of git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git that included latest chagnes adding multi-sensors support

- Dropped

thermal: qoriq: Add support for multiple thremal sites
thermal: qoriq: Be more strict when parsing
thermal: qoriq: Simplify error handling in qoriq_tmu_get_sensor_id()

since they are no longer relevant

- Added

thermal: qoriq: Don't store struct thermal_zone_device reference
thermal: qoriq: Add local struct qoriq_sensor pointer
thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data
thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly

to simplify latest codebase

- Changed "thermal: qoriq: Do not report invalid temperature reading" to use regmap_read_poll_timeout() to make sure that tmu_get_temp() waits for fist sample to be ready before reporting it. This case is triggered on my setup if qoriq_thermal is compiled as a module

[v1] lore.kernel.org/lkml/[email protected] [v2] lore.kernel.org/lkml/[email protected] [v3] lore.kernel.org/lkml/[email protected] [v4] lore.kernel.org/lkml/[email protected] [v5] lore.kernel.org/lkml/[email protected] [v6] lore.kernel.org/lkml/[email protected] [v7] lore.kernel.org/lkml/[email protected] [rfc] lore.kernel.org/lkml/[email protected]

Andrey Smirnov (12):
thermal: qoriq: Add local struct device pointer
thermal: qoriq: Don't store struct thermal_zone_device reference
thermal: qoriq: Add local struct qoriq_sensor pointer
thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data
thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly
thermal: qoriq: Pass data to qoriq_tmu_calibration() directly
thermal: qoriq: Drop unnecessary drvdata cleanup
thermal: qoriq: Convert driver to use regmap API
thermal: qoriq: Enable all sensors before registering them
thermal: qoriq: Do not report invalid temperature reading
thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()
thermal: qoriq: Add hwmon support

 drivers/thermal/qoriq_thermal.c | 336 +++++++++++++++-----------------
 drivers/thermal/thermal_hwmon.c |  28 +++
 drivers/thermal/thermal_hwmon.h |   7 +
 3 files changed, 195 insertions(+), 176 deletions(-)
Signature · 1 line
2.21.0