]> www.infradead.org Git - nvme.git/commit
thermal: intel: int340x: Fix Panther Lake DLVR support
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 11 Apr 2025 11:54:38 +0000 (04:54 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Apr 2025 16:57:25 +0000 (18:57 +0200)
commit00c5ff5e9a55dca2e7ca29af4e5f8708731faf11
tree27b48b4afac6caf572fa3392ee0f37d034143ef8
parent5ddcc657ba507e926b285394589a3a78603d5f55
thermal: intel: int340x: Fix Panther Lake DLVR support

Panther Lake uses the same DLVR register offsets as Lunar Lake, but the
driver uses the default register offsets table for it by mistake.

Move the selection of register offsets table from the actual attribute
read/write callbacks to proc_thermal_rfim_add() and make it handle
Panther Lake the same way as Lunar Lake.  This way it is clean and in
the future such issues can be avoided.

Fixes: e50eeababa94 ("thermal: intel: int340x: Panther Lake DLVR support")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/20250411115438.594114-1-srinivas.pandruvada@linux.intel.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c