drm/stm: ltdc: fix deferred endpoint management
authorPhilippe CORNU <philippe.cornu@st.com>
Tue, 17 Apr 2018 11:34:41 +0000 (13:34 +0200)
committerPhilippe Cornu <philippe.cornu@st.com>
Fri, 27 Apr 2018 08:39:45 +0000 (10:39 +0200)
commitc2af73645d3a67cc2e4a750179048a4c6d5110a1
tree70132edcc96d0157c0c0045d5bdf8e89fc3cb5e9
parentcc4e44d5156933272df02d27f99322100e1edd1d
drm/stm: ltdc: fix deferred endpoint management

When a driver related to one of the endpoints is deferred
due to probe dependencies (i2c, spi...) but the other one
is ready, ltdc probe continues and the deferred driver
will never be probed again.

The fix consists in waiting for all deferred endpoints before
continuing the ltdc probe.

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Yannick Fertré <yannick.fertre@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180417113441.8214-1-philippe.cornu@st.com
drivers/gpu/drm/stm/ltdc.c