drm/sun4i: Release exclusive clock lock when disabling TCON
authorJernej Skrabec <jernej.skrabec@siol.net>
Thu, 1 Mar 2018 21:34:32 +0000 (22:34 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 2 Mar 2018 07:44:17 +0000 (08:44 +0100)
commitf3e5feeb92a163c935659b7222a32965276c1c23
tree1a7bdd349bfa8abc49b3fe62b8537b6c6aea9992
parente64b6afa98f3629d0c0c46233bbdbe8acdb56f06
drm/sun4i: Release exclusive clock lock when disabling TCON

Currently exclusive TCON clock lock is never released, which, for
example, prevents changing resolution on HDMI.

In order to fix that, release clock when disabling TCON. TCON is always
disabled first before new mode is set.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180301213442.16677-7-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun4i_tcon.c