diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2021-08-22 02:44:27 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2021-10-07 05:42:02 +0300 |
commit | 187502afe87a0fc96832056558978fa423920ee0 (patch) | |
tree | f80e20effce90b42e069fc5bfb2a809b95aa1f42 /drivers/gpu/drm/rcar-du/rcar_du_drv.h | |
parent | 1e3944578b749449bd7fa6bf0bae4c3d3f5f1733 (diff) | |
download | linux-stable-187502afe87a0fc96832056558978fa423920ee0.tar.gz linux-stable-187502afe87a0fc96832056558978fa423920ee0.tar.bz2 linux-stable-187502afe87a0fc96832056558978fa423920ee0.zip |
drm: rcar-du: Don't create encoder for unconnected LVDS outputs
On R-Car D3 and E3, the LVDS encoders provide the pixel clock to the DU,
even when LVDS outputs are not used. For this reason, the rcar-lvds
driver probes successfully on those platforms even if no further bridge
or panel is connected to the LVDS output, in order to provide the
rcar_lvds_clk_enable() and rcar_lvds_clk_disable() functions to the DU
driver.
If an LVDS output isn't connected, trying to create a DRM connector for
the output will fail. Fix this by skipping connector creation in that
case, and also skip creation of the DRM encoder as there's no point in
an encoder without a connector.
Fixes: e9e056949c92 ("drm: rcar-du: lvds: Convert to DRM panel bridge helper")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_drv.h')
0 files changed, 0 insertions, 0 deletions