Skip to contentSkip to conversation

drm/pl111: Actually fix CONFIG_VEXPRESS_CONFIG depends

PATCH In review Kees Cook 4 participants 5 messages Jun 4, 2021

Subsystems (3)
lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH v2 1/1 drm/pl111: Actually fix CONFIG_VEXPRESS_CONFIG depends

VEXPRESS_CONFIG needs to either be missing, built-in, or modular when pl111 is modular. Update the Kconfig to reflect the need.

Fixes 4dc7c97d04dc ("drm/pl111: depend on CONFIG_VEXPRESS_CONFIG")

---
v2: use expected Kconfig style to express this. :)
v1: https://lore.kernel.org/lkml/[email protected]

---
 drivers/gpu/drm/pl111/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/pl111/Kconfig +2 -1
index c5210a5bef1b..3aae387a96af 100644
@@ -2,7 +2,8 @@
 config DRM_PL111
 	tristate "DRM Support for PL111 CLCD Controller"
 	depends on DRM
-	depends on VEXPRESS_CONFIG
+	depends on ARM || ARM64 || COMPILE_TEST
+	depends on VEXPRESS_CONFIG || VEXPRESS_CONFIG=n
 	depends on COMMON_CLK
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Kees Cook

VEXPRESS_CONFIG needs to either be missing, built-in, or modular when pl111 is modular. Update the Kconfig to reflect the need.

Fixes 4dc7c97d04dc ("drm/pl111: depend on CONFIG_VEXPRESS_CONFIG")

Yeah that doesn't work, thanks for fixing this!

drivers/gpu/drm/pl111/Kconfig line 6

Quoted 5 lines
drivers/gpu/drm/pl111/Kconfig +2 -1
-       depends on VEXPRESS_CONFIG
+       depends on ARM || ARM64 || COMPILE_TEST
+       depends on VEXPRESS_CONFIG || VEXPRESS_CONFIG=n

That's the right solution,

Yours,
Linus Walleij

#2 lore raw
Quoted 9 lines · Linus Walleij
Quoted 4 lines · Kees Cook

VEXPRESS_CONFIG needs to either be missing, built-in, or modular when pl111 is modular. Update the Kconfig to reflect the need.

Fixes 4dc7c97d04dc ("drm/pl111: depend on CONFIG_VEXPRESS_CONFIG")

Yeah that doesn't work, thanks for fixing this!

Quoted 8 lines

drivers/gpu/drm/pl111/Kconfig line 6

Quoted 5 lines
drivers/gpu/drm/pl111/Kconfig +2 -1
-       depends on VEXPRESS_CONFIG
+       depends on ARM || ARM64 || COMPILE_TEST
+       depends on VEXPRESS_CONFIG || VEXPRESS_CONFIG=n

That's the right solution,

Since I screwed up already, care to also push this to drm-misc-next?

Thanks, Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#3 lore raw
Quoted 12 lines · Daniel Vetter
Quoted 11 lines · Linus Walleij
Quoted 4 lines · Kees Cook

VEXPRESS_CONFIG needs to either be missing, built-in, or modular when pl111 is modular. Update the Kconfig to reflect the need.

Fixes 4dc7c97d04dc ("drm/pl111: depend on CONFIG_VEXPRESS_CONFIG")

Yeah that doesn't work, thanks for fixing this!

Quoted 1 line
Quoted 8 lines
Quoted 6 lines

drivers/gpu/drm/pl111/Kconfig line 6

Quoted 3 lines
drivers/gpu/drm/pl111/Kconfig +2 -1
-       depends on VEXPRESS_CONFIG
+       depends on ARM || ARM64 || COMPILE_TEST
+       depends on VEXPRESS_CONFIG || VEXPRESS_CONFIG=n

That's the right solution,

Since I screwed up already, care to also push this to drm-misc-next?

OK I applied and pushed it!

Yours,
Linus Walleij

Acked-by on v2 1/1
#4 lore raw
In reply to Kees Cook
Quoted 4 lines · Kees Cook

VEXPRESS_CONFIG needs to either be missing, built-in, or modular when pl111 is modular. Update the Kconfig to reflect the need.

Quoted 8 lines
Fixes 4dc7c97d04dc ("drm/pl111: depend on CONFIG_VEXPRESS_CONFIG")

---
v2: use expected Kconfig style to express this. :)
v1: https://lore.kernel.org/lkml/[email protected]

---
 drivers/gpu/drm/pl111/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)