[PATCH] accel: ethosu: Add hardware dependency hint

Jean Delvare posted 1 patch 2 months, 1 week ago
drivers/accel/ethosu/Kconfig |    1 +
1 file changed, 1 insertion(+)
[PATCH] accel: ethosu: Add hardware dependency hint
Posted by Jean Delvare 2 months, 1 week ago
The Ethos-U NPU is only available on ARM systems, so add a hardware
dependency hint to prevent this driver from being needlessly
included in kernels built for other architectures.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
 drivers/accel/ethosu/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- linux-6.19.orig/drivers/accel/ethosu/Kconfig
+++ linux-6.19/drivers/accel/ethosu/Kconfig
@@ -4,6 +4,7 @@ config DRM_ACCEL_ARM_ETHOSU
 	tristate "Arm Ethos-U65/U85 NPU"
 	depends on HAS_IOMEM
 	depends on DRM_ACCEL
+	depends on ARM || ARM64 || COMPILE_TEST
 	select DRM_GEM_DMA_HELPER
 	select DRM_SCHED
 	select GENERIC_ALLOCATOR


-- 
Jean Delvare
SUSE L3 Support
Re: [PATCH] accel: ethosu: Add hardware dependency hint
Posted by Rob Herring 2 months, 1 week ago
On Wed, Apr 01, 2026 at 12:23:23PM +0200, Jean Delvare wrote:
> The Ethos-U NPU is only available on ARM systems, so add a hardware
> dependency hint to prevent this driver from being needlessly
> included in kernels built for other architectures.
> 
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> ---
>  drivers/accel/ethosu/Kconfig |    1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

Rob