]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/amdxcp: Use unique name for partition dev
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 30 Apr 2024 11:23:16 +0000 (16:53 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 19:43:55 +0000 (15:43 -0400)
commit97d814fe4f697791abfbe27e035f0b943c483243
treed2e50faaa2f7e0ca7aff0fb6c1e0d86f6878a86f
parent3f19cffde93585b25a007b108cc4b5bd149226c1
drm/amd/amdxcp: Use unique name for partition dev

amdxcp is a platform driver for creating partition devices. libdrm
library identifies a platform device based on 'OF_FULLNAME' or
'MODALIAS'. If two or more devices have the same platform name, drm
library only picks the first device. Platform driver core uses name of
the device to populate 'MODALIAS'. When 'amdgpu_xcp' is used as the base
name, only first partition device gets identified. Assign unique name so
that drm library identifies partition devices separately.

amdxcp doesn't support probe of partitions, it doesn't bother about
modaliases.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.c