Skip to contentSkip to conversation

drm/rcar-du: Add run-time dependencies

PATCH In review Jean Delvare 2 participants 4 messages May 26, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/rcar-du: Add run-time dependencies

The Renesas R-Car Display Unit driver is only useful on shmobile unless build testing. The LVDS output is useful on an even more reduced hardware set.

Cc Laurent Pinchart <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/rcar-du/Kconfig |    2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/rcar-du/Kconfig +2 -0
@@ -1,6 +1,7 @@
 config DRM_RCAR_DU
 	tristate "DRM Support for R-Car Display Unit"
 	depends on DRM && ARM
+	depends on ARCH_SHMOBILE || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
@@ -12,6 +13,7 @@ config DRM_RCAR_DU
 config DRM_RCAR_LVDS
 	bool "R-Car DU LVDS Encoder Support"
 	depends on DRM_RCAR_DU
+	depends on ARCH_R8A7790 || ARCH_R8A7791 || COMPILE_TEST
 	help
 	  Enable support the R-Car Display Unit embedded LVDS encoders
 	  (currently only on R8A7790).
Signature · 2 lines
Jean Delvare
SUSE L3 Support
#1 lore raw

Hi Jean,

Thank you for the patch.

Quoted 16 lines · On Monday 26 May 2014 13:01:35 Jean Delvare wrote:

The Renesas R-Car Display Unit driver is only useful on shmobile unless build testing. The LVDS output is useful on an even more reduced hardware set.

Cc Laurent Pinchart <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/rcar-du/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

--- linux-3.15-rc6.orig/drivers/gpu/drm/rcar-du/Kconfig 2014-03-31
05:40:15.000000000 +0200 +++
linux-3.15-rc6/drivers/gpu/drm/rcar-du/Kconfig 2014-05-23
18:03:16.440036942 +0200 @@ -1,6 +1,7 @@
config DRM_RCAR_DU

drivers/gpu/drm/rcar-du/Kconfig line 3

Quoted 2 lines
drivers/gpu/drm/rcar-du/Kconfig +0 -0
 	tristate "DRM Support for R-Car Display Unit"
 	depends on DRM && ARM

Have you checked whether ARM is needed for compilation ? If not you could drop it.

Quoted 12 lines
drivers/gpu/drm/rcar-du/Kconfig +2 -0
+	depends on ARCH_SHMOBILE || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
@@ -12,6 +13,7 @@ config DRM_RCAR_DU
 config DRM_RCAR_LVDS
 	bool "R-Car DU LVDS Encoder Support"
 	depends on DRM_RCAR_DU
+	depends on ARCH_R8A7790 || ARCH_R8A7791 || COMPILE_TEST
 	help
 	  Enable support the R-Car Display Unit embedded LVDS encoders
 	  (currently only on R8A7790).
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw

Hi Laurent,

Quoted 1 line · Laurent Pinchart

Thank you for the patch.

You're welcome. And thanks for your help :-)

Quoted 20 lines · On Monday 26 May 2014 13:01:35 Jean Delvare wrote:
Quoted 16 lines

The Renesas R-Car Display Unit driver is only useful on shmobile unless build testing. The LVDS output is useful on an even more reduced hardware set.

Cc Laurent Pinchart <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/rcar-du/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

--- linux-3.15-rc6.orig/drivers/gpu/drm/rcar-du/Kconfig 2014-03-31
05:40:15.000000000 +0200 +++
linux-3.15-rc6/drivers/gpu/drm/rcar-du/Kconfig 2014-05-23
18:03:16.440036942 +0200 @@ -1,6 +1,7 @@
config DRM_RCAR_DU

drivers/gpu/drm/rcar-du/Kconfig line 3

Quoted 2 lines
drivers/gpu/drm/rcar-du/Kconfig +0 -0
 	tristate "DRM Support for R-Car Display Unit"
 	depends on DRM && ARM
Quoted 2 lines

Have you checked whether ARM is needed for compilation ? If not you could drop it.

It does depend on ARM indirectly, because it selects DRM_GEM_CMA_HELPER which builds code that calls dma_alloc_writecombine(), which in turn is only defined on arm (and avr32.) That's why I left the build-time dependency on ARM.

Quoted 13 lines
Quoted 13 lines
drivers/gpu/drm/rcar-du/Kconfig +2 -0
+	depends on ARCH_SHMOBILE || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
@@ -12,6 +13,7 @@ config DRM_RCAR_DU
 config DRM_RCAR_LVDS
 	bool "R-Car DU LVDS Encoder Support"
 	depends on DRM_RCAR_DU
+	depends on ARCH_R8A7790 || ARCH_R8A7791 || COMPILE_TEST
 	help
 	  Enable support the R-Car Display Unit embedded LVDS encoders
 	  (currently only on R8A7790).
Signature · 2 lines
Jean Delvare
SUSE L3 Support
#3 lore raw

Hi Jean,

Quoted 22 lines · On Monday 26 May 2014 14:21:30 Jean Delvare wrote:
Quoted 21 lines · Laurent Pinchart
Quoted 19 lines · On Monday 26 May 2014 13:01:35 Jean Delvare wrote:

The Renesas R-Car Display Unit driver is only useful on shmobile unless build testing. The LVDS output is useful on an even more reduced hardware set.

Cc Laurent Pinchart <[email protected]>
Cc David Airlie <[email protected]>

---

 drivers/gpu/drm/rcar-du/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

--- linux-3.15-rc6.orig/drivers/gpu/drm/rcar-du/Kconfig 2014-03-31
05:40:15.000000000 +0200 +++
linux-3.15-rc6/drivers/gpu/drm/rcar-du/Kconfig 2014-05-23
18:03:16.440036942 +0200 @@ -1,6 +1,7 @@
config DRM_RCAR_DU

drivers/gpu/drm/rcar-du/Kconfig +0 -0
 	tristate "DRM Support for R-Car Display Unit"
 	depends on DRM && ARM
Quoted 7 lines
Quoted 2 lines

Have you checked whether ARM is needed for compilation ? If not you could drop it.

It does depend on ARM indirectly, because it selects DRM_GEM_CMA_HELPER which builds code that calls dma_alloc_writecombine(), which in turn is only defined on arm (and avr32.) That's why I left the build-time dependency on ARM.

In that case,

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
drivers/gpu/drm/rcar-du/Kconfig +2 -0
+	depends on ARCH_SHMOBILE || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
@@ -12,6 +13,7 @@ config DRM_RCAR_DU
 config DRM_RCAR_LVDS
 	bool "R-Car DU LVDS Encoder Support"
 	depends on DRM_RCAR_DU
+	depends on ARCH_R8A7790 || ARCH_R8A7791 || COMPILE_TEST
 	help
 	  Enable support the R-Car Display Unit embedded LVDS encoders
 	  (currently only on R8A7790).
Signature · 3 lines
Regards,

Laurent Pinchart