drm/bridge/synopsys: dsi: use mipi_dsi_device to find panel
From: Heiko Stuebner <heiko.stuebner@...> Date: Tue, 17 Dec 2019 21:16:36 +0100
Commit-Message
Right now the dsi driver uses drm_of_find_panel_or_bridge() to find a connected panel or bridge. But this requires an of-graph connection between the dsi-host and dsi-device, where normal bindings for regular panels just expect the dsi device to be a subnode of the actual dsi host not requiring ports. drm_of_find_panel_or_bridge is used to find panel/bridge under the actual device-node of the dsi device, but as this happens in the dsi_host_attach callback we already have the dsi-device and its device-node available and therefore can just call the relevant panel+bridge functions ourself, making it work as well in setups without port-connections. Tested on a Rockchip px30 single-dsi with panels form Leadtek and Xinpeng as well on Gru-Scarlet (rk3399) with dual-dsi (and thus port-connections to both dsi controllers) connected to the Innotek display variant. changes in v2: - rework commit message, rereading what I had written was just too cringe-worthy ;-) Signed-off-by: Heiko Stuebner <heiko.stuebner@...>
Patch-Comment
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-)
Statistics
- 10 lines added
- 7 lines removed