OSDN Git Service

drm/amd: Use attribute groups for PSP flashing attributes
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 26 Jun 2023 15:04:04 +0000 (10:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jul 2023 17:51:46 +0000 (13:51 -0400)
commit521289d2a279b2fbea0450d5e8e6a01cf70a80b3
tree0c1cce82df1764fd5a408c1b4d1022f352cd96e3
parent3e6a9329e67de86e5357125d5aad987bdd1fdb7c
drm/amd: Use attribute groups for PSP flashing attributes

Individually creating attributes can be racy, instead make attributes
using attribute groups and control their visibility with an is_visible
callback to only show when using appropriate products.

v2: squash in fix for PSP 13.0.10

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h