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:
0fe1309
)
ARM: SAMSUNG: adc: disable/enable IRQ on suspend/resume
author
Vasily Khoruzhick
<anarsoul@gmail.com>
Thu, 18 Feb 2010 16:32:29 +0000
(18:32 +0200)
committer
Ben Dooks
<ben-linux@fluff.org>
Wed, 24 Feb 2010 01:52:14 +0000
(
01:52
+0000)
IRQ should be disabled on suspend and re-enabled on resume.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/adc.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/plat-samsung/adc.c
b/arch/arm/plat-samsung/adc.c
index 81caf2135721947c19d2c69d44f782215dd1b6b1..0b5833b9ac5bcd9aad629b9a93209a58b848efbf 100644
(file)
--- a/
arch/arm/plat-samsung/adc.c
+++ b/
arch/arm/plat-samsung/adc.c
@@
-412,6
+412,7
@@
static int s3c_adc_suspend(struct platform_device *pdev, pm_message_t state)
con |= S3C2410_ADCCON_STDBM;
writel(con, adc->regs + S3C2410_ADCCON);
+ disable_irq(adc->irq);
clk_disable(adc->clk);
return 0;
@@
-422,6
+423,7
@@
static int s3c_adc_resume(struct platform_device *pdev)
struct adc_device *adc = platform_get_drvdata(pdev);
clk_enable(adc->clk);
+ enable_irq(adc->irq);
writel(adc->prescale | S3C2410_ADCCON_PRSCEN,
adc->regs + S3C2410_ADCCON);