drm/rockchip: analogix_dp: allow to work without panel
authorLucas Stach <l.stach@pengutronix.de>
Fri, 21 Jun 2024 20:17:55 +0000 (22:17 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 14 Nov 2024 18:18:08 +0000 (19:18 +0100)
When the DP output is routed to a external connector there is no
need for a fixed panel, as the panel may be detected via EDID on
the AUX channel. Allow to continue probing if no panel reference
is present.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240621201755.500271-1-l.stach@pengutronix.de
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c

index d3341ed..956b1be 100644 (file)
@@ -386,7 +386,7 @@ static int rockchip_dp_probe(struct platform_device *pdev)
                return -ENODEV;
 
        ret = drm_of_find_panel_or_bridge(dev->of_node, 1, 0, &panel, NULL);
-       if (ret < 0)
+       if (ret < 0 && ret != -ENODEV)
                return ret;
 
        dp = devm_kzalloc(dev, sizeof(*dp), GFP_KERNEL);