Dependencies of DRM_LOONGSON
Subsystems (3)
Hi Jingfeng,
You recently added the loongson drm driver to the Linux kernel tree. Unlike all other loongson drivers, the drm driver doesn't have any dependency set on the platform or architecture, and is therefore proposed on all architectures. As far as I understand, this driver is only useful on Loongson-based MIPS systems, therefore I believe it should only be offered as an option on these systems.
Would the following change be OK with you?
From: Jean Delvare <[email protected]>
Subject: drm/loongson: Add platform dependency
Only offer the Loongson DRM driver as an option on platforms where it makes sense.
--- drivers/gpu/drm/loongson/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/loongson/Kconfig +1 -0
@@ -3,6 +3,7 @@ config DRM_LOONGSON tristate "DRM support for Loongson Graphics" depends on DRM && PCI && MMU + depends on MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST select DRM_KMS_HELPER select DRM_TTM select I2C
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Hi,
Quoted 8 lines · Jean Delvare
Hi Jingfeng,
You recently added the loongson drm driver to the Linux kernel tree. Unlike all other loongson drivers, the drm driver doesn't have any dependency set on the platform or architecture, and is therefore proposed on all architectures. As far as I understand, this driver is only useful on Loongson-based MIPS systems, therefore I believe it should only be offered as an option on these systems.
Yes, you are right for now. Thanks a lot for pointed out. But it is also usable on LoongArch[1] systems.
[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
Quoted 1 line
Would the following change be OK with you?
"depends on LOONGARCH || MIPS || COMPILE_TEST" should be enough, so please update the patch and resend, thanks a lot. :-)
Quoted 14 lines
From: Jean Delvare <[email protected]>
Subject: drm/loongson: Add platform dependencyOnly offer the Loongson DRM driver as an option on platforms where it makes sense.
Signed-off-by Jean Delvare <[email protected]>--- drivers/gpu/drm/loongson/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/loongson/Kconfig line 6
Quoted 4 lines
drivers/gpu/drm/loongson/Kconfig +1
-0@@ -3,6 +3,7 @@ config DRM_LOONGSON tristate "DRM support for Loongson Graphics" depends on DRM && PCI && MMU + depends on MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST
depends on LOONGARCH || MIPS || COMPILE_TEST
Quoted 5 lines
drivers/gpu/drm/loongson/Kconfig +0
-0select DRM_KMS_HELPER select DRM_TTM select I2CThanks,