]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: tcon: Unconditionally reset the TCON
authorChen-Yu Tsai <wens@csie.org>
Fri, 8 Sep 2017 09:00:16 +0000 (17:00 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 8 Sep 2017 20:18:41 +0000 (22:18 +0200)
commit00b6fb0f69b0f6b76d2ba9aaf23786f9d1162229
tree8fa95e5e8300e2c87f5326e0573a22eadd32e5a1
parent0b5b1ef9ae18fb25405793edfb60b61fb7c04ee3
drm/sun4i: tcon: Unconditionally reset the TCON

When binding the TCON, we were checking the reset control status and
asserting reset if it wasn't in reset. The check failed to account for
the reset control API returning error codes if the status callback was
not implemented.

Since we want the TCON to be reset in all cases, use reset_control_reset
to force a reset instead.

Fixes: 19f0a1ddb467 ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908090016.32224-1-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_tcon.c