All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sui Jingfeng <sui.jingfeng@linux.dev>
To: Jean Delvare <jdelvare@suse.de>
Cc: Thomas Zimmermann <tzimmermann@suse.de>, dri-devel@lists.freedesktop.org
Subject: Re: Dependencies of DRM_LOONGSON
Date: Mon, 13 Nov 2023 06:05:33 +0800	[thread overview]
Message-ID: <2110acaf-cf29-47a2-bd52-e57a806ecae5@linux.dev> (raw)
In-Reply-To: <20231110175854.40ee0629@endymion.delvare>

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,

      reply	other threads:[~2023-11-12 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-10 16:58 Dependencies of DRM_LOONGSON Jean Delvare
2023-11-12 22:05 ` Sui Jingfeng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2110acaf-cf29-47a2-bd52-e57a806ecae5@linux.dev \
    --to=sui.jingfeng@linux.dev \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jdelvare@suse.de \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.