]> git.baikalelectronics.ru Git - kernel.git/commit
drm/stm: ltdc: Silence -EPROBE_DEFER till bridge attached
authorJagan Teki <jagan@amarulasolutions.com>
Sun, 4 Jul 2021 13:59:14 +0000 (19:29 +0530)
committerPhilippe Cornu <philippe.cornu@foss.st.com>
Mon, 19 Jul 2021 13:31:56 +0000 (15:31 +0200)
commitb5aa94c19741232a6d356e4c4cfe29a2674022ed
tree398ba354424152b1b226e751b230682388642d96
parent144dda11ba6b8dbf74c74185302949e1c6e67f37
drm/stm: ltdc: Silence -EPROBE_DEFER till bridge attached

As dw-mipi-dsi supported all possible ways to find the DSI
devices. It can take multiple iterations for ltdc to find
all components attached to the DSI bridge.

The current ltdc driver failed to find the endpoint as
it returned -EINVAL for the first iteration itself. This leads
to following error:

[    3.099289] [drm:ltdc_load] *ERROR* init encoder endpoint 0

So, check the return value and cleanup the encoder only if it's
not -EPROBE_DEFER. This make all components in the attached DSI
bridge found properly.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Yannick Fertre <yannick.fertre@foss.st.com>
Acked-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210704135914.268308-1-jagan@amarulasolutions.com
drivers/gpu/drm/stm/ltdc.c