Dependencies of DRM_LOONGSON
Jean Delvare
jdelvare at suse.de
Fri Nov 10 16:58:54 UTC 2023
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 <jdelvare at suse.de>
Subject: drm/loongson: Add platform dependency
Only offer the Loongson DRM driver as an option on platforms where
it makes sense.
Signed-off-by: Jean Delvare <jdelvare at suse.de>
---
drivers/gpu/drm/loongson/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-6.6.orig/drivers/gpu/drm/loongson/Kconfig
+++ linux-6.6/drivers/gpu/drm/loongson/Kconfig
@@ -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,
--
Jean Delvare
SUSE L3 Support
More information about the dri-devel
mailing list