summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorPer Persson <per.xb.persson@stericsson.com>2011-05-11 14:03:21 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-05 12:13:25 +0200
commit6f298b0645d7b12f894337a89a54f714fa357eb4 (patch)
treebc4e1ae06d2c662b04aff53af8a281a3c556984a /drivers/video
parent256c4bfa24463c59c6327c3c6a016731e5a64ac4 (diff)
video: av8100: Control interrupts at power change
Interrupts are enabled by default at powerup, and disabled at powerdown. ST-Ericsson ID: 339603 ST-Ericsson Linux next: Not tested, ER 282779 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I69a358549dd077b33c097aebf74ad00825c0c55d Signed-off-by: Per Persson <per.xb.persson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22957 Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QATEST Reviewed-by: Marcel TUNNISSEN <marcel.tuennissen@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/av8100/av8100.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/av8100/av8100.c b/drivers/video/av8100/av8100.c
index aa3a62fde4c..06d8d9dad5d 100644
--- a/drivers/video/av8100/av8100.c
+++ b/drivers/video/av8100/av8100.c
@@ -1942,6 +1942,8 @@ int av8100_powerup(void)
if (av8100_status_get().av8100_state < AV8100_OPMODE_SCAN)
ret = av8100_powerup2();
+ av8100_enable_interrupt();
+
return ret;
}
EXPORT_SYMBOL(av8100_powerup);
@@ -1952,6 +1954,8 @@ int av8100_powerdown(void)
struct av8100_platform_data *pdata = av8100dev->platform_data;
+ av8100_disable_interrupt();
+
if (pdata->alt_powerupseq) {
retval = av8100_reg_stby_pend_int_w(
AV8100_STANDBY_PENDING_INTERRUPT_HPDI_LOW,