diff options
Diffstat (limited to 'meta/packages/linux/linux-omap2-git/beagleboard/TWL4030-01.patch')
-rw-r--r-- | meta/packages/linux/linux-omap2-git/beagleboard/TWL4030-01.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-omap2-git/beagleboard/TWL4030-01.patch b/meta/packages/linux/linux-omap2-git/beagleboard/TWL4030-01.patch new file mode 100644 index 0000000000..c361c33d61 --- /dev/null +++ b/meta/packages/linux/linux-omap2-git/beagleboard/TWL4030-01.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | TWL4030: remove superfluous PWR interrupt status clear before masking | ||
2 | |||
3 | From: Paul Walmsley <paul@pwsan.com> | ||
4 | |||
5 | twl_irq_init() clears PWR interrupt status bits, then masks the interrupts | ||
6 | off, then clears the PWR interrupt status bits again. The first clear | ||
7 | seems unnecessary, so, remove it. | ||
8 | |||
9 | Signed-off-by: Paul Walmsley <paul@pwsan.com> | ||
10 | --- | ||
11 | |||
12 | drivers/i2c/chips/twl4030-core.c | 18 ------------------ | ||
13 | 1 files changed, 0 insertions(+), 18 deletions(-) | ||
14 | |||
15 | diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c | ||
16 | index adc45d4..ff662bc 100644 | ||
17 | --- a/drivers/i2c/chips/twl4030-core.c | ||
18 | +++ b/drivers/i2c/chips/twl4030-core.c | ||
19 | @@ -719,24 +719,6 @@ static void twl_init_irq(void) | ||
20 | char *msg = "Unable to register interrupt subsystem"; | ||
21 | unsigned int irq_num; | ||
22 | |||
23 | - /* | ||
24 | - * We end up with interrupts from other modules before | ||
25 | - * they get a chance to handle them... | ||
26 | - */ | ||
27 | - /* PWR_ISR1 */ | ||
28 | - res = twl4030_i2c_write_u8(TWL4030_MODULE_INT, 0xFF, 0x00); | ||
29 | - if (res < 0) { | ||
30 | - pr_err("%s[%d][%d]\n", msg, res, __LINE__); | ||
31 | - return; | ||
32 | - } | ||
33 | - | ||
34 | - /* PWR_ISR2 */ | ||
35 | - res = twl4030_i2c_write_u8(TWL4030_MODULE_INT, 0xFF, 0x02); | ||
36 | - if (res < 0) { | ||
37 | - pr_err("%s[%d][%d]\n", msg, res, __LINE__); | ||
38 | - return; | ||
39 | - } | ||
40 | - | ||
41 | /* PWR_IMR1 */ | ||
42 | res = twl4030_i2c_write_u8(TWL4030_MODULE_INT, 0xFF, 0x1); | ||
43 | if (res < 0) { | ||