]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: fix hwmon node of power1_label create issue
authorYang Wang <KevinYang.Wang@amd.com>
Tue, 8 Feb 2022 06:23:55 +0000 (14:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Feb 2022 20:14:31 +0000 (15:14 -0500)
commit05eb32a65740b5d446aa3dc3c9f4249b4b902737
treed78df18e6dcec2e81f1301d464d209f5bff3204f
parentfd5251a44b8d9f81042c23b3fbf61f948a9a9d60
drm/amd/pm: fix hwmon node of power1_label create issue

it will cause hwmon node of power1_label is not created.

v2:
the hwmon node of "power1_label" is always needed for all ASICs.
and the patch will remove ASIC type check for "power1_label".

Fixes: 507ff7e72e8a76 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")
Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c