Skip to content

Commit 822b2a7

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: intel: int340x: Cleanup of DLVR sysfs on driver remove
When only DLVR enabled without DVFS, during driver remove, proc_thermal_rfim_remove() is not called. Hence the DLVR sysfs is not deleted. On Lunar Lake DLVR is enabled without DVFS, hence this issue can be reproduced. Check also PROC_THERMAL_FEATURE_DLVR to call proc_thermal_rfim_remove(). Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Link: https://patch.msgid.link/20240619124600.491168-2-srinivas.pandruvada@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent be6bfb2 commit 822b2a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/thermal/intel/int340x_thermal/processor_thermal_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ void proc_thermal_mmio_remove(struct pci_dev *pdev, struct proc_thermal_device *
440440
proc_thermal_rapl_remove();
441441

442442
if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_FIVR ||
443-
proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_DVFS)
443+
proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_DVFS ||
444+
proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_DLVR)
444445
proc_thermal_rfim_remove(pdev);
445446

446447
if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_POWER_FLOOR)

0 commit comments

Comments
 (0)