Skip to contentSkip to conversation

drm/rockchip: add PINCTRL dependency for LVDS

PATCH Applied Arnd Bergmann 2 participants 3 messages Oct 5, 2017 – Oct 13, 2017

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

PATCH 1/1 drm/rockchip: add PINCTRL dependency for LVDS

The new driver fails to build when CONFIG_PINCTRL is disabled:

drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_grf_config':
drivers/gpu/drm/rockchip/rockchip_lvds.c:229:39: error: dereferencing pointer to incomplete type 'struct dev_pin_info'
if (lvds->pins && !IS_ERR(lvds->pins->default_state))

This adds the respective Kconfig dependency.

Fixes 34cc0aa25456 ("drm/rockchip: Add support for Rockchip Soc LVDS")
---
 drivers/gpu/drm/rockchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/rockchip/Kconfig +1 -0
index 0c31f0a27b9c..3c70c6224bd2 100644
@@ -60,6 +60,7 @@ config ROCKCHIP_INNO_HDMI
 config ROCKCHIP_LVDS
 	bool "Rockchip LVDS support"
 	depends on DRM_ROCKCHIP
+	depends on PINCTRL
 	help
 	  Choose this option to enable support for Rockchip LVDS controllers.
 	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
Signature · 1 line
2.9.0
Acked-by on v1 1/1
#1 lore raw

Thanks for the fix, and sorry for that, I'm in holidays now,currently has no environment to do the patch pushed.

I'll be back next week and do this patch push.

Thanks
Mark.

Quoted 36 lines · On 2017年10月5日周四 19:10 Arnd Bergmann <[email protected]> wrote:

The new driver fails to build when CONFIG_PINCTRL is disabled:

drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_grf_config':
drivers/gpu/drm/rockchip/rockchip_lvds.c:229:39: error: dereferencing pointer to incomplete type 'struct dev_pin_info'
if (lvds->pins && !IS_ERR(lvds->pins->default_state))

This adds the respective Kconfig dependency.

Fixes 34cc0aa25456 ("drm/rockchip: Add support for Rockchip Soc LVDS")
---
 drivers/gpu/drm/rockchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/rockchip/Kconfig +1 -0
index 0c31f0a27b9c..3c70c6224bd2 100644
@@ -60,6 +60,7 @@ config ROCKCHIP_INNO_HDMI
 config ROCKCHIP_LVDS
        bool "Rockchip LVDS support"
        depends on DRM_ROCKCHIP
+       depends on PINCTRL
        help
          Choose this option to enable support for Rockchip LVDS

controllers.
Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
--
2.9.0

Quoted 1 line

--

Mark Yao 姚智情

Rockchip 福州瑞芯微电子有限公司

Fuzhou Headquarters

Addr:No.21 Building, A District, Fuzhou

Software Park, 89 Soft Avenue, Tongpan Road,

Gulou District, Fuzhou (350003)

地址:福建省福州市铜盘路软件大道89号软件园A区21号楼 (350003)

Tel:(86-0591)83991906 - 8296
E-mail:[email protected]

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Applied
#2 lore raw
In reply to Arnd Bergmann
Quoted 10 lines · Arnd Bergmann

The new driver fails to build when CONFIG_PINCTRL is disabled:

drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_grf_config':
drivers/gpu/drm/rockchip/rockchip_lvds.c:229:39: error: dereferencing pointer to incomplete type 'struct dev_pin_info'

    if (lvds->pins && !IS_ERR(lvds->pins->default_state))

This adds the respective Kconfig dependency.

Fixes 34cc0aa25456 ("drm/rockchip: Add support for Rockchip Soc LVDS")

Pushed to drm-misc-next

Thanks
Mark