OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e64b6af
)
drm/sun4i: Release exclusive clock lock when disabling TCON
author
Jernej Skrabec
<jernej.skrabec@siol.net>
Thu, 1 Mar 2018 21:34:32 +0000
(22:34 +0100)
committer
Maxime Ripard
<maxime.ripard@bootlin.com>
Fri, 2 Mar 2018 07:44:17 +0000
(08:44 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sun4i/sun4i_tcon.c
b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index
b396011
..
ade197b
100644
(file)
--- a/
drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/
drivers/gpu/drm/sun4i/sun4i_tcon.c
@@
-101,10
+101,12
@@
static void sun4i_tcon_channel_set_status(struct sun4i_tcon *tcon, int channel,
return;
}
- if (enabled)
+ if (enabled)
{
clk_prepare_enable(clk);
- else
+ } else {
+ clk_rate_exclusive_put(clk);
clk_disable_unprepare(clk);
+ }
}
static void sun4i_tcon_lvds_set_status(struct sun4i_tcon *tcon,