* Dependencies of DRM_LOONGSON
@ 2023-11-10 16:58 Jean Delvare
2023-11-12 22:05 ` Sui Jingfeng
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2023-11-10 16:58 UTC (permalink / raw)
To: Sui Jingfeng; +Cc: dri-devel, Thomas Zimmermann
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@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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Dependencies of DRM_LOONGSON
2023-11-10 16:58 Dependencies of DRM_LOONGSON Jean Delvare
@ 2023-11-12 22:05 ` Sui Jingfeng
0 siblings, 0 replies; 2+ messages in thread
From: Sui Jingfeng @ 2023-11-12 22:05 UTC (permalink / raw)
To: Jean Delvare; +Cc: Thomas Zimmermann, dri-devel
Hi,
On 2023/11/11 00:58, Jean Delvare wrote:
> 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
> 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. :-)
> From: Jean Delvare <jdelvare@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@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
depends on LOONGARCH || MIPS || COMPILE_TEST
> select DRM_KMS_HELPER
> select DRM_TTM
> select I2C
>
> Thanks,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-12 22:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-10 16:58 Dependencies of DRM_LOONGSON Jean Delvare
2023-11-12 22:05 ` Sui Jingfeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).