linux/drivers/gpu/drm/rockchip
Alex Bee 37825e07ab drm/rockchip: handle non-platform devices in rockchip_drm_endpoint_is_subdriver
As discussed at [1] rockchip_drm_endpoint_is_subdriver will currently always
return -ENODEV for non-platform-devices (e.g. external i2c bridges), what
makes them never being considered in rockchip_rgb_init.

As suggested at [1] this additionally adds a of_device_is_available for
the node found, which will work for both platform and non-platform devices.
Also we can return early for non-platform-devices if they are enabled,
as rockchip_sub_drivers contains exclusively platform-devices.

[1] https://lore.kernel.org/all/20210316182753.GA25685@earth.li/

Suggested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210914150756.85190-1-knaerzche@gmail.com
2021-09-21 11:17:37 +02:00
..
analogix_dp-rockchip.c Merge drm/drm-next into drm-misc-next 2020-04-17 08:12:22 +02:00
cdn-dp-core.c drm/rockchip: cdn-dp-core: add MODULE_FIRMWARE macro 2021-05-28 19:46:24 +02:00
cdn-dp-core.h
cdn-dp-reg.c drm/rockchip: cdn-dp: fix sign extension on an int multiply for a u64 result 2021-05-28 20:27:44 +02:00
cdn-dp-reg.h
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: fix incorrect clock in vpll clock error message 2020-11-29 17:39:21 +01:00
dw-mipi-dsi-rockchip.c drm/rockchip: dsi: add ability to work as a phy instead of full dsi 2021-07-25 17:19:49 +02:00
inno_hdmi.c
inno_hdmi.h
Kconfig drm: rockchip: remove reference to non-existing config DRM_RGB 2021-08-26 11:19:08 +02:00
Makefile
rk3066_hdmi.c
rk3066_hdmi.h
rockchip_drm_drv.c drm/rockchip: handle non-platform devices in rockchip_drm_endpoint_is_subdriver 2021-09-21 11:17:37 +02:00
rockchip_drm_drv.h drm/rockchip: remove unused psr_list{,_lock} 2021-09-21 11:13:56 +02:00
rockchip_drm_fb.c drm/rockchip: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:35 +01:00
rockchip_drm_fb.h
rockchip_drm_fbdev.c
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
rockchip_drm_gem.h drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
rockchip_drm_vop.c drm/<driver>: drm_gem_plane_helper_prepare_fb is now the default 2021-06-24 15:35:24 +02:00
rockchip_drm_vop.h drm/rockchip: Require the YTR modifier for AFBC 2021-02-25 10:18:45 +01:00
rockchip_lvds.c drm/bridge: Centralize error message when bridge attach fails 2021-07-28 16:33:12 +03:00
rockchip_lvds.h
rockchip_rgb.c drm/bridge: Centralize error message when bridge attach fails 2021-07-28 16:33:12 +03:00
rockchip_rgb.h
rockchip_vop_reg.c drm/rockchip: vop: add PX30 version info 2021-05-28 20:30:35 +02:00
rockchip_vop_reg.h drm: rockchip: add alpha support for RK3036, RK3066, RK3126 and RK3188 2021-05-28 19:28:00 +02:00