[v2] drm/loongson: Add platform dependency

Message ID 20231113125508.4dc755e8@endymion.delvare
State New
Headers
Series [v2] drm/loongson: Add platform dependency |

Commit Message

Jean Delvare Nov. 13, 2023, 11:55 a.m. UTC
  Only offer the Loongson DRM driver as an option on platforms where
it makes sense.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Sui Jingfeng <sui.jingfeng@linux.dev>
Cc: David Airlie <airlied@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
---
Changes since v1:
* Use the architecture dependencies suggested by Sui Jingfeng.

 drivers/gpu/drm/loongson/Kconfig |    1 +
 1 file changed, 1 insertion(+)
  

Comments

Sui Jingfeng Nov. 13, 2023, 3:39 p.m. UTC | #1
Hi, thanks for the patch.


On 2023/11/13 19:55, Jean Delvare wrote:
> Only offer the Loongson DRM driver as an option on platforms where
> it makes sense.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>


Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev>


> Cc: Sui Jingfeng <sui.jingfeng@linux.dev>
> Cc: David Airlie <airlied@gmail.com>
> Cc: Daniel Vetter <daniel@ffwll.ch>
> ---
> Changes since v1:
> * Use the architecture dependencies suggested by Sui Jingfeng.
>
>   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 LOONGARCH || MIPS || COMPILE_TEST
>   	select DRM_KMS_HELPER
>   	select DRM_TTM
>   	select I2C
>
>
  

Patch

--- 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 LOONGARCH || MIPS || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_TTM
 	select I2C