Skip to contentSkip to conversation

Rocket Kconfig fixes

PATCH In review Heiko Stuebner 2 participants 4 messages Aug 14, 2025 – Sep 1, 2025

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author reviewer
#0 lore raw

cover Rocket Kconfig fixes

More common indentation and depending on the actual accel framework.

Heiko Stuebner (2):
accel/rocket: Fix indentation of Kconfig entry
accel/rocket: Depend on DRM_ACCEL not just DRM

 drivers/accel/rocket/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.47.2
author reviewer
#1 lore raw

PATCH 1/2 accel/rocket: Fix indentation of Kconfig entry

The general indentation for the Kconfig lines is one tab, so adapt the lines accordingly.

The description is correctly indented (1 tab + 2 spaces) so doesn't need changes.

Fixes ed98261b4168 ("accel/rocket: Add a new driver for Rockchip's NPU")
---
 drivers/accel/rocket/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/accel/rocket/Kconfig +8 -8
index 43d6cd98ec8e..af6cda273892 100644
@@ -1,14 +1,14 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
 config DRM_ACCEL_ROCKET
-       tristate "Rocket (support for Rockchip NPUs)"
-       depends on DRM
-       depends on (ARCH_ROCKCHIP && ARM64) || COMPILE_TEST
-       depends on ROCKCHIP_IOMMU || COMPILE_TEST
-       depends on MMU
-       select DRM_SCHED
-       select DRM_GEM_SHMEM_HELPER
-       help
+	tristate "Rocket (support for Rockchip NPUs)"
+	depends on DRM
+	depends on (ARCH_ROCKCHIP && ARM64) || COMPILE_TEST
+	depends on ROCKCHIP_IOMMU || COMPILE_TEST
+	depends on MMU
+	select DRM_SCHED
+	select DRM_GEM_SHMEM_HELPER
+	help
 	  Choose this option if you have a Rockchip SoC that contains a
 	  compatible Neural Processing Unit (NPU), such as the RK3588. Called by
 	  Rockchip either RKNN or RKNPU, it accelerates inference of neural
Signature · 1 line
2.47.2
author reviewer
#2 lore raw

PATCH 2/2 accel/rocket: Depend on DRM_ACCEL not just DRM

In reply to Heiko Stuebner

With the current dependency on only DRM, a config of

CONFIG_DRM_ACCEL_ROCKET=y

is possible, but of course wrong, because without DRM_ACCEL the build- system will never even enter drivers/accel/* .

So depend on DRM_ACCEL instead of just DRM.

Fixes ed98261b4168 ("accel/rocket: Add a new driver for Rockchip's NPU")
---
 drivers/accel/rocket/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/rocket/Kconfig +1 -1
index af6cda273892..16465abe0660 100644
@@ -2,7 +2,7 @@
 
 config DRM_ACCEL_ROCKET
 	tristate "Rocket (support for Rockchip NPUs)"
-	depends on DRM
+	depends on DRM_ACCEL
 	depends on (ARCH_ROCKCHIP && ARM64) || COMPILE_TEST
 	depends on ROCKCHIP_IOMMU || COMPILE_TEST
 	depends on MMU
Signature · 1 line
2.47.2
maintainer
#3 lore raw
In reply to Heiko Stuebner

Thanks, Heiko, I have applied them to drm-misc-next.

Regards,

Tomeu

Quoted 13 lines · Heiko Stuebner

More common indentation and depending on the actual accel framework.

Heiko Stuebner (2):
accel/rocket: Fix indentation of Kconfig entry
accel/rocket: Depend on DRM_ACCEL not just DRM

 drivers/accel/rocket/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

--
2.47.2