All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: arun c <arunedarath@mistralsolutions.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
Date: Sat, 20 Sep 2008 10:22:49 -0700	[thread overview]
Message-ID: <200809201022.49350.david-b@pacbell.net> (raw)
In-Reply-To: <c656a4d20809192351x39f71fach7145236a9e8e0552@mail.gmail.com>

On Friday 19 September 2008, arun c wrote:
> without this the below error messages were coming continuously
> 
> TWL4030 module irq 369 is disabled but can't be masked!

I can see how it would fix that.  :)

But this is also a good illustration of why this keypad device
should be initialized differently ... this particular data is
not board-specific, and the root cause of the problem was that
the device wasn't set up as part of twl4030 setup.

The clean fix requires twl4030 to be a "new style" driver.
Fix not yet available. :(

- Dave


> Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
> ---
>  arch/arm/mach-omap2/board-omap3evm.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/board-omap3evm.c
> b/arch/arm/mach-omap2/board-omap3evm.c
> index 92f70ce..f9fd06b 100644
> --- a/arch/arm/mach-omap2/board-omap3evm.c
> +++ b/arch/arm/mach-omap2/board-omap3evm.c
> @@ -22,6 +22,7 @@
>  #include <linux/input.h>
>  #include <linux/spi/spi.h>
>  #include <linux/spi/ads7846.h>
> +#include <linux/i2c/twl4030.h>
> 
>  #include <mach/hardware.h>
>  #include <asm/mach-types.h>
> @@ -176,6 +177,7 @@ static struct omap_kp_platform_data omap3evm_kp_data = {
>  	.keymap 	= omap3evm_keymap,
>  	.keymapsize	= ARRAY_SIZE(omap3evm_keymap),
>  	.rep		= 1,
> +	.irq		= TWL4030_MODIRQ_KEYPAD,
>  };
> 
>  static struct platform_device omap3evm_kp_device = {
> -- 

  parent reply	other threads:[~2008-09-20 17:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-20  6:51 [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix arun c
2008-09-20 11:24 ` Felipe Balbi
2008-09-20 17:22 ` David Brownell [this message]
2008-09-23 11:00   ` Tony Lindgren
2008-09-23 11:37     ` Koen Kooi
2008-09-23 19:45       ` David Brownell
2008-09-24 10:44         ` Felipe Balbi
2008-09-24 11:25           ` Tony Lindgren
2008-09-24 15:34           ` David Brownell
2008-09-24 22:44             ` Felipe Balbi
2008-09-24 23:24               ` David Brownell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200809201022.49350.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=arunedarath@mistralsolutions.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.