drm: add missing dependencies
Subsystems (7)
cover drm: add missing dependencies
I did lots of randconfig tests over time, which resulted in many patches, five of which are for drm. In each of these cases, the Kconfig dependencies are incomplete, which can lead to broken builds, and specifying the complete dependencies solves it.
The patches are all independent from one another and solve separate issues. Please apply.
Arnd Bergmann (5):
drm: panel/sharp: add backlight dependency
drm: panel/simple: add backlight dependency
drm: rockchip: add reset controller dependency
drm: sti: add panel dependency
drm: msm: add missing dependencies on OF and COMMON_CLK
drivers/gpu/drm/msm/Kconfig | 1 + drivers/gpu/drm/panel/Kconfig | 2 ++ drivers/gpu/drm/rockchip/Kconfig | 1 + drivers/gpu/drm/sti/Kconfig | 1 + 4 files changed, 5 insertions(+)
Signature · 1 line
2.1.0.rc2
PATCH 1/5 drm: panel/sharp: add backlight dependency
The sharp panel code uses the backlight interface to find a device, which fails when backlight is disabled:
drivers/built-in.o: In function `sharp_panel_probe':
:(.text+0x5ceac): undefined reference to `of_find_backlight_by_node'
--- drivers/gpu/drm/panel/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/Kconfig +1 -0
@@ -31,6 +31,7 @@ config DRM_PANEL_SHARP_LQ101R1SX01 tristate "Sharp LQ101R1SX01 panel" depends on OF depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE help Say Y here if you want to enable support for Sharp LQ101R1SX01 TFT-LCD modules. The panel has a 2560x1600 resolution and uses
Signature · 1 line
2.1.0.rc2
PATCH 2/5 drm: panel/simple: add backlight dependency
In reply to Arnd BergmannThe simple panel code uses the backlight interface to find a device, which fails when backlight is disabled:
drivers/built-in.o: In function `panel_simple_platform_probe':
:(.text+0xd3c48): undefined reference to `of_find_backlight_by_node'
--- drivers/gpu/drm/panel/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/Kconfig +1 -0
@@ -10,6 +10,7 @@ menu "Display Panels" config DRM_PANEL_SIMPLE tristate "support for simple panels" depends on OF + depends on BACKLIGHT_CLASS_DEVICE help DRM panel driver for dumb panels that need at most a regulator and a GPIO to be powered up. Optionally a backlight can be attached so
Signature · 1 line
2.1.0.rc2
PATCH 3/5 drm: rockchip: add reset controller dependency
In reply to Arnd BergmannWhen the reset controller subsystem is disabled, this driver fails to build:
drivers/gpu/drm/rockchip/rockchip_drm_vop.c: In function 'vop_initial':drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1267:2: error: implicit declaration of function 'devm_reset_control_get' [-Werror=implicit-function-declaration]
The easiest solution is to add a dependency in Kconfig to avoid that case.
--- drivers/gpu/drm/rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/rockchip/Kconfig +1 -0
@@ -1,6 +1,7 @@ config DRM_ROCKCHIP tristate "DRM Support for Rockchip" depends on DRM && ROCKCHIP_IOMMU + depends on RESET_CONTROLLER select DRM_KMS_HELPER select DRM_KMS_FB_HELPER select DRM_PANEL
Signature · 1 line
2.1.0.rc2
PATCH 4/5 drm: sti: add panel dependency
In reply to Arnd BergmannThe newly added sti driver requires the drm_panel helpers, and we get a link error if they are not enabled
ERROR: "drm_panel_attach" [drivers/gpu/drm/sti/stidvo.ko] undefined!
ERROR: "of_drm_find_panel" [drivers/gpu/drm/sti/stidvo.ko] undefined!
This adds a 'select' statement as we have for the other drivers.
--- drivers/gpu/drm/sti/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/sti/Kconfig +1 -0
@@ -5,6 +5,7 @@ config DRM_STI select DRM_KMS_HELPER select DRM_GEM_CMA_HELPER select DRM_KMS_CMA_HELPER + select DRM_PANEL select FW_LOADER_USER_HELPER_FALLBACK help Choose this option to enable DRM on STM stiH41x chipset
Signature · 1 line
2.1.0.rc2
PATCH 1/1 drm: msm: add missing dependencies on OF and COMMON_CLK
In reply to Arnd BergmannThe msm gpu drivers depend on both the DT mechanism and the common clk handling code, if they are not enabled, we get a number of build errors:
In file included from drivers/gpu/drm/msm/hdmi/hdmi.h:27:0,
from drivers/gpu/drm/msm/hdmi/hdmi_bridge.c:18:drivers/gpu/drm/msm/msm_drv.h:45:24: fatal error: mach/board.h: No such file or directory
#include <mach/board.h>
^drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c:503:2: error: implicit declaration of function 'devm_clk_register' [-Werror=implicit-function-declaration]
drivers/gpu/drm/msm/Kconfig +1 -0
@@ -3,6 +3,7 @@ config DRM_MSM tristate "MSM DRM" depends on DRM depends on ARCH_QCOM || (ARM && COMPILE_TEST) + depends on OF && COMMON_CLK select REGULATOR select DRM_KMS_HELPER select DRM_PANEL
Re: [PATCH] drm: msm: add missing dependencies on OF and COMMON_CLK
Quoted 3 lines · On Wednesday 28 January 2015 14:48:09 Arnd Bergmann wrote:
The msm gpu drivers depend on both the DT mechanism and the common clk handling code, if they are not enabled, we get
...
As should be obvious, this one was meant to be [PATCH 5/5], but I messed up the subject line.
Arnd
Dave Airlie
maintainerQuoted 7 lines · Arnd Bergmann
I did lots of randconfig tests over time, which resulted in many patches, five of which are for drm. In each of these cases, the
Kconfigdependencies are incomplete, which can lead to broken builds, and specifying the complete dependencies solves it.The patches are all independent from one another and solve separate issues. Please apply.
Thanks Arnd, I've taken these all into drm-next in case any is wondering.
Dave.