Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60d857bf authored by Philipp Zabel's avatar Philipp Zabel Committed by Greg Kroah-Hartman
Browse files

imx-drm: imx-drm-core: Fix imx_drm_encoder_get_mux_id



The decoder mux id is equal to the port id of the encoder's input port
that is connected to the given crtc, not to the endpoint id (which is
arbitrary and usually zero).

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Tested-by: default avatarShawn Guo <shawn.guo@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 539e26cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -517,7 +517,7 @@ int imx_drm_encoder_get_mux_id(struct device_node *node,
		of_node_put(port);
		if (port == imx_crtc->port) {
			ret = of_graph_parse_endpoint(ep, &endpoint);
			return ret ? ret : endpoint.id;
			return ret ? ret : endpoint.port;
		}
	} while (ep);