projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1f5857
)
OMAP: DSS2: DSI: ensure VDDS_DSI is disabled on exit
author
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Mon, 20 Dec 2010 14:26:22 +0000
(16:26 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Wed, 11 May 2011 11:20:17 +0000
(14:20 +0300)
The panel drivers can leave the VDDS_DSI regulator enabled, even when
the panel is disabled, to ensure that the DSI pins are powered.
This patch ensures that VDDS_DSI is disabled on DSI module unload.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/omap2/dss/dsi.c
b/drivers/video/omap2/dss/dsi.c
index fcda46c34d1c98a03ecdfbecb533a5e693a4c76c..f89994d7b000405c4b911f604a8e8c9518e82443 100644
(file)
--- a/
drivers/video/omap2/dss/dsi.c
+++ b/
drivers/video/omap2/dss/dsi.c
@@
-4090,6
+4090,11
@@
err1:
static void dsi_exit(void)
{
if (dsi.vdds_dsi_reg != NULL) {
+ if (dsi.vdds_dsi_enabled) {
+ regulator_disable(dsi.vdds_dsi_reg);
+ dsi.vdds_dsi_enabled = false;
+ }
+
regulator_put(dsi.vdds_dsi_reg);
dsi.vdds_dsi_reg = NULL;
}