OSDN Git Service

drm/stm: ltdc: check number of endpoints
authorYannick Fertre <yannick.fertre@st.com>
Fri, 28 Feb 2020 08:07:38 +0000 (09:07 +0100)
committerBenjamin Gaignard <benjamin.gaignard@st.com>
Mon, 27 Apr 2020 13:42:12 +0000 (15:42 +0200)
commitb430ff7ef8b016abcd8ebf8991920deb8750e351
tree257ffb4089e4d531d26931368ad65e0f1df79c2f
parente1ca5184625d06b116816830333e745af00b26a6
drm/stm: ltdc: check number of endpoints

Number of endpoints could exceed the fix value MAX_ENDPOINTS(2).
Instead of increase simply this value, the number of endpoint
could be read from device tree. Load sequence has been a little
rework to take care of several panel or bridge which can be
connected/disconnected or enable/disable.

Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1582877258-1112-1-git-send-email-yannick.fertre@st.com
drivers/gpu/drm/stm/ltdc.c