]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/hwmon: Fix PL1 disable flow in xe_hwmon_power_max_write
authorKarthik Poosa <karthik.poosa@intel.com>
Thu, 1 Aug 2024 11:24:24 +0000 (16:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:24 +0000 (15:34 +0200)
commit578d9752cb528633d91d7eeb2cea4cde079411ef
treeaac78f9fee0f691cc394b424322e893c891eb8b6
parentc802eff84c8503b3390a169d0f4e0eee2612b060
drm/xe/hwmon: Fix PL1 disable flow in xe_hwmon_power_max_write

[ Upstream commit ac3191c5cf47e2d5220a1ed7353a2e498a1f415e ]

In xe_hwmon_power_max_write, for PL1 disable supported case, instead of
returning after PL1 disable, PL1 enable path was also being run.
Fixed it by returning after disable.

v2: Correct typo and grammar in commit message. (Jonathan)

Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Fixes: fef6dd12b45a ("drm/xe/hwmon: Protect hwmon rw attributes with hwmon_lock")
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240801112424.1841766-1-karthik.poosa@intel.com
(cherry picked from commit 146458645e505f5eac498759bcd865cf7c0dfd9a)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/xe/xe_hwmon.c