RE: [PATCH v2] drm/amdgpu: Add FRU sysfs nodes only if needed

2023-08-07 Thread Zhang, Hawking
[AMD Official Use Only - General] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Lazar, Lijo Sent: Monday, August 7, 2023 16:32 To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander Subject: [PATCH v2] drm/amdgpu: Add FRU sysfs nodes only if

[PATCH v2] drm/amdgpu: Add FRU sysfs nodes only if needed

2023-08-07 Thread Lijo Lazar
Create sysfs nodes for FRU data only if FRU data is available. Move the logic to FRU specific file. Signed-off-by: Lijo Lazar --- v2: Add fru sysfs fini to take care of removing files (Hawking) drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 71 +-- .../gpu/drm/amd/amdgpu/amdgpu_fr