[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0010-OMAP3-SR-disable-interrupt-by-default.patch
1 From 7810a0932b5e0d4fdf6c34cff735e227f5af8392 Mon Sep 17 00:00:00 2001
2 From: Nishanth Menon <nm@ti.com>
3 Date: Mon, 14 Feb 2011 12:41:10 +0530
4 Subject: [PATCH 010/149] OMAP3+: SR: disable interrupt by default
6 We will enable and disable interrupt on a need basis in the class
7 driver. We need to keep the IRQ disabled by default else the
8 forceupdate or vcbypass events could trigger events that we don't
9 need/expect to handle.
11 This is a preparation for SmartReflex AVS class drivers such as
12 class 2 and class 1.5 which would need to use interrupts. Existing
13 SmartReflex AVS class 3 driver does not require to use interrupts
14 and is not impacted by this change.
16 Signed-off-by: Nishanth Menon <nm@ti.com>
17 Signed-off-by: Kevin Hilman <khilman@ti.com>
18 ---
19 arch/arm/mach-omap2/smartreflex.c | 1 +
20 1 files changed, 1 insertions(+), 0 deletions(-)
22 diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
23 index 3ee7261..616ef62 100644
24 --- a/arch/arm/mach-omap2/smartreflex.c
25 +++ b/arch/arm/mach-omap2/smartreflex.c
26 @@ -268,6 +268,7 @@ static int sr_late_init(struct omap_sr *sr_info)
27 0, name, (void *)sr_info);
28 if (ret)
29 goto error;
30 + disable_irq(sr_info->irq);
31 }
33 if (pdata && pdata->enable_on_init)
34 --
35 1.6.6.1