Commit a53358a3 authored by Jacopo Mondi's avatar Jacopo Mondi Committed by Laurent Pinchart
Browse files

drm: rcar_lvds: Fix dual link mode operations



The R-Car LVDS encoder units support dual-link operations by splitting
the pixel output between the primary encoder and the companion encoder.

Currently the companion encoder fails at probe time, causing the
registration of the primary to fail as well, preventing the whole DU unit
from being registered at all.

Fix this by not bailing out from probe with error if the
"renesas,companion" property is not specified.

Fixes: fa440d87 ("drm: rcar-du: lvds: Add support for dual-link mode")
Reported-by: default avatarFabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: default avatarJacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent a85abd5d
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -673,10 +673,8 @@ static int rcar_lvds_parse_dt_companion(struct rcar_lvds *lvds)


	/* Locate the companion LVDS encoder for dual-link operation, if any. */
	/* Locate the companion LVDS encoder for dual-link operation, if any. */
	companion = of_parse_phandle(dev->of_node, "renesas,companion", 0);
	companion = of_parse_phandle(dev->of_node, "renesas,companion", 0);
	if (!companion) {
	if (!companion)
		dev_err(dev, "Companion LVDS encoder not found\n");
		return 0;
		return -ENXIO;
	}


	/*
	/*
	 * Sanity check: the companion encoder must have the same compatible
	 * Sanity check: the companion encoder must have the same compatible