Skip to contentSkip to conversation

video: clcd-versatile: Depend on ARM

PATCH New Mark Brown 2 participants 2 messages Jul 27, 2014 – Jul 28, 2014 Framebuffer layer

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 video: clcd-versatile: Depend on ARM

From: Mark Brown <[email protected]>

The Versatile CLCD helpers call dma_alloc_writecombine() which is only available on ARM and AVR32, meaning they won't build on other platforms including arm64. Unfortunately the current Kconfig enables the symbol by default if ARCH_VEXPRESS is defined which means that it is enabled on arm64 when building for the ARM reference platforms and models for ARMv8 since they have many hardware similarities with their pre-ARMv8 systems.

Since all the systems that need the helpers are ARM systems fix this by adding a dependency on ARM.

---
 drivers/video/fbdev/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/video/fbdev/Kconfig +1 -0
index e83ed760141b..ce7c76676a70 100644
@@ -293,6 +293,7 @@ config FB_ARMCLCD
 # Helper logic selected only by the ARM Versatile platform family.
 config PLAT_VERSATILE_CLCD
 	def_bool ARCH_VERSATILE || ARCH_REALVIEW || ARCH_VEXPRESS
+	depends on ARM
 	depends on FB_ARMCLCD && FB=y
 
 config FB_ACORN
Signature · 1 line
2.0.1
#1 lore raw

PATCH 1/1 video: clcd-versatile: Depend on ARM

Quoted 9 lines · On Sunday 27 July 2014 18:04:18 Mark Brown wrote:

From: Mark Brown <[email protected]>

The Versatile CLCD helpers call dma_alloc_writecombine() which is only available on ARM and AVR32, meaning they won't build on other platforms including arm64. Unfortunately the current Kconfig enables the symbol by default if ARCH_VEXPRESS is defined which means that it is enabled on arm64 when building for the ARM reference platforms and models for ARMv8 since they have many hardware similarities with their pre-ARMv8 systems.

Quoted 4 lines

Since all the systems that need the helpers are ARM systems fix this by adding a dependency on ARM.

I guess this one is for me, as the bug only exists in linux-next through arm-soc, introduced by my previous fix for another bug.

Applied to next/cleanup, thanks a lot for fixing it!

Arnd