merge of '49118a4c6035353c0f8cf1aa30297dd36e43241f'
[vuplus_openembedded] / packages / linux / linux-omap2-git / beagleboard / TWL4030-04.patch
1 X-Mozilla-Status: 0001
2 X-Mozilla-Status2: 00000000
3 Return-Path: <linux-omap-owner@vger.kernel.org>
4 X-Spam-Checker-Version: SpamAssassin 3.2.2 (2007-07-23) on
5         morningsun.geekisp.com
6 X-Spam-Level: 
7 X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,DKIM_POLICY_SIGNSOME,
8         DK_POLICY_SIGNSOME,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.2
9 Delivered-To: balister.org-philip@balister.org
10 Received: (qmail 21713 invoked by uid 1003); 18 Jul 2008 01:35:29 -0000
11 Received: from vger.kernel.org (209.132.176.167)
12   by mail.geekisp.com with SMTP; 18 Jul 2008 01:35:29 -0000
13 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
14         id S1754758AbYGRBf2 (ORCPT <rfc822;philip@balister.org>);
15         Thu, 17 Jul 2008 21:35:28 -0400
16 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757008AbYGRBf1
17         (ORCPT <rfc822;linux-omap-outgoing>);
18         Thu, 17 Jul 2008 21:35:27 -0400
19 Received: from utopia.booyaka.com ([72.9.107.138]:49364 "EHLO
20         utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
21         with ESMTP id S1754758AbYGRBfY (ORCPT
22         <rfc822;linux-omap@vger.kernel.org>); Thu, 17 Jul 2008 21:35:24 -0400
23 Received: (qmail 13880 invoked by uid 526); 18 Jul 2008 01:35:23 -0000
24 MBOX-Line: From nobody Thu Jul 17 19:34:51 2008
25 From:   Paul Walmsley <paul@pwsan.com>
26 Subject: [PATCH 4/9] TWL4030: clear MADC interrupt status registers upon init
27 To:     linux-omap@vger.kernel.org
28 Date:   Thu, 17 Jul 2008 19:34:51 -0600
29 Message-ID: <20080718013450.18943.33397.stgit@localhost.localdomain>
30 In-Reply-To: <20080718013205.18943.34047.stgit@localhost.localdomain>
31 References: <20080718013205.18943.34047.stgit@localhost.localdomain>
32 User-Agent: StGIT/0.14.3.163.g06f9
33 MIME-Version: 1.0
34 Content-Type: text/plain; charset="utf-8"
35 Content-Transfer-Encoding: 7bit
36 Sender: linux-omap-owner@vger.kernel.org
37 Precedence: bulk
38 List-ID: <linux-omap.vger.kernel.org>
39 X-Mailing-List: linux-omap@vger.kernel.org
40
41 twl_init_irq() does not clear MADC interrupt status registers upon init -
42 fix.
43
44 Signed-off-by: Paul Walmsley <paul@pwsan.com>
45 ---
46
47  drivers/i2c/chips/twl4030-core.c |   14 ++++++++++++++
48  1 files changed, 14 insertions(+), 0 deletions(-)
49
50 diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c
51 index bb0732c..9d93524 100644
52 --- a/drivers/i2c/chips/twl4030-core.c
53 +++ b/drivers/i2c/chips/twl4030-core.c
54 @@ -821,6 +821,20 @@ static void twl_init_irq(void)
55                 return;
56         }
57  
58 +       /* MADC_ISR1 */
59 +       res = twl4030_i2c_write_u8(TWL4030_MODULE_MADC, 0xFF, 0x61);
60 +       if (res < 0) {
61 +               pr_err("%s[%d][%d]\n", msg, res, __LINE__);
62 +               return;
63 +       }
64 +
65 +       /* MADC_ISR2 */
66 +       res = twl4030_i2c_write_u8(TWL4030_MODULE_MADC, 0xFF, 0x63);
67 +       if (res < 0) {
68 +               pr_err("%s[%d][%d]\n", msg, res, __LINE__);
69 +               return;
70 +       }
71 +
72         /* key Pad */
73         /* KEYPAD - IMR1 */
74         res = twl4030_i2c_write_u8(TWL4030_MODULE_KEYPAD, 0xFF, (0x12));
75
76
77 --
78 To unsubscribe from this list: send the line "unsubscribe linux-omap" in
79 the body of a message to majordomo@vger.kernel.org
80 More majordomo info at  http://vger.kernel.org/majordomo-info.html
81