OSDN Git Service

drm/amdgpu: Add FRU sysfs nodes only if needed
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 4 Aug 2023 13:02:54 +0000 (18:32 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:45:55 +0000 (09:45 -0400)
commit7957ec80ef97e983bb87782757c9dd74c34acc27
tree148a75a169162226b50f7f721462642473cc5925
parentb029753034cdd24c56a00f975bc72722ed8063e5
drm/amdgpu: Add FRU sysfs nodes only if needed

Create sysfs nodes for FRU data only if FRU data is available. Move the
logic to FRU specific file.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h