Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/stm: ltdc: rework reset sequence

Reset must be properly assert before deassert.
This is important if there is an early boot splash screen
before the kernel start up.

Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1530271355-5608-1-git-send-email-yannick.fertre@st.com

authored by

Yannick Fertre and committed by
Benjamin Gaignard
8adbbb2e 7868e507

+4 -1
+4 -1
drivers/gpu/drm/stm/ltdc.c
··· 1082 1082 } 1083 1083 } 1084 1084 1085 - if (!IS_ERR(rstc)) 1085 + if (!IS_ERR(rstc)) { 1086 + reset_control_assert(rstc); 1087 + usleep_range(10, 20); 1086 1088 reset_control_deassert(rstc); 1089 + } 1087 1090 1088 1091 /* Disable interrupts */ 1089 1092 reg_clear(ldev->regs, LTDC_IER,