* [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
@ 2008-09-20 6:51 arun c
2008-09-20 11:24 ` Felipe Balbi
2008-09-20 17:22 ` David Brownell
0 siblings, 2 replies; 11+ messages in thread
From: arun c @ 2008-09-20 6:51 UTC (permalink / raw)
To: linux-omap@vger.kernel.org
without this the below error messages were coming continuously
TWL4030 module irq 369 is disabled but can't be masked!
<2>TWL4030 module irq 369 is disabled but can't be masked!
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 = {
--
1.5.3.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
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
1 sibling, 0 replies; 11+ messages in thread
From: Felipe Balbi @ 2008-09-20 11:24 UTC (permalink / raw)
To: arun c; +Cc: linux-omap@vger.kernel.org
On Sat, Sep 20, 2008 at 02:51:40AM -0400, arun c wrote:
> without this the below error messages were coming continuously
>
> TWL4030 module irq 369 is disabled but can't be masked!
> <2>TWL4030 module irq 369 is disabled but can't be masked!
>
> Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.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 = {
> --
> 1.5.3.4
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
balbi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
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
2008-09-23 11:00 ` Tony Lindgren
1 sibling, 1 reply; 11+ messages in thread
From: David Brownell @ 2008-09-20 17:22 UTC (permalink / raw)
To: arun c; +Cc: linux-omap@vger.kernel.org
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 = {
> --
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
2008-09-20 17:22 ` David Brownell
@ 2008-09-23 11:00 ` Tony Lindgren
2008-09-23 11:37 ` Koen Kooi
0 siblings, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2008-09-23 11:00 UTC (permalink / raw)
To: David Brownell; +Cc: arun c, linux-omap@vger.kernel.org
* David Brownell <david-b@pacbell.net> [080920 20:23]:
> 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. :(
Pushing until we have a better fix.
Tony
>
> - 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 = {
> > --
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
2008-09-23 11:00 ` Tony Lindgren
@ 2008-09-23 11:37 ` Koen Kooi
2008-09-23 19:45 ` David Brownell
0 siblings, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2008-09-23 11:37 UTC (permalink / raw)
To: linux-omap@vger.kernel.org List
[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]
Op 23 sep 2008, om 13:00 heeft Tony Lindgren het volgende geschreven:
> * David Brownell <david-b@pacbell.net> [080920 20:23]:
>> 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. :(
>
> Pushing until we have a better fix.
But twl4030 now is a "new style" driver, so we have a start :)
regards,
Koen
>
>
> Tony
>
>>
>> - 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 = {
>>> --
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-
>> omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-
> omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
2008-09-23 11:37 ` Koen Kooi
@ 2008-09-23 19:45 ` David Brownell
2008-09-24 10:44 ` Felipe Balbi
0 siblings, 1 reply; 11+ messages in thread
From: David Brownell @ 2008-09-23 19:45 UTC (permalink / raw)
To: Koen Kooi; +Cc: linux-omap@vger.kernel.org List
On Tuesday 23 September 2008, Koen Kooi wrote:
> >>
> >> The clean fix requires twl4030 to be a "new style" driver.
> >> Fix not yet available. :(
> >
> > Pushing until we have a better fix.
>
> But twl4030 now is a "new style" driver, so we have a start :)
But who's working on it? :)
Sketch of solution:
- twl4030.h defines keypad platform_data
- add_children() adds a platform device for keypad,
and passes that platform_data
- twl4030 keypad driver switches to platform_bus
and uses that platform_data
- board-specific init code provides the relevant
platform_data (or none)
I'll do the GPIO code, which will be a slightly more
interesting example than the RTC.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
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
0 siblings, 2 replies; 11+ messages in thread
From: Felipe Balbi @ 2008-09-24 10:44 UTC (permalink / raw)
To: ext David Brownell; +Cc: Koen Kooi, linux-omap@vger.kernel.org List
On Tue, Sep 23, 2008 at 12:45:42PM -0700, David Brownell wrote:
> On Tuesday 23 September 2008, Koen Kooi wrote:
> > >>
> > >> The clean fix requires twl4030 to be a "new style" driver.
> > >> Fix not yet available. :(
> > >
> > > Pushing until we have a better fix.
> >
> > But twl4030 now is a "new style" driver, so we have a start :)
>
> But who's working on it? :)
>
> Sketch of solution:
>
> - twl4030.h defines keypad platform_data
>
> - add_children() adds a platform device for keypad,
> and passes that platform_data
>
> - twl4030 keypad driver switches to platform_bus
> and uses that platform_data
>
> - board-specific init code provides the relevant
> platform_data (or none)
>
> I'll do the GPIO code, which will be a slightly more
> interesting example than the RTC.
I can do the keypad since I'm already working on the usb as well. Dave,
I'm gonna add twl_has_rtc(), twl_had_keypad() and twl_has_usb() to clean
a bit add_children. With those, we're gonna be able to:
if (twl_has_keypad() && pdata->keypad) {
...
}
--
balbi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
2008-09-24 10:44 ` Felipe Balbi
@ 2008-09-24 11:25 ` Tony Lindgren
2008-09-24 15:34 ` David Brownell
1 sibling, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2008-09-24 11:25 UTC (permalink / raw)
To: Felipe Balbi
Cc: ext David Brownell, Koen Kooi, linux-omap@vger.kernel.org List
* Felipe Balbi <felipe.balbi@nokia.com> [080924 13:45]:
> On Tue, Sep 23, 2008 at 12:45:42PM -0700, David Brownell wrote:
> > On Tuesday 23 September 2008, Koen Kooi wrote:
> > > >>
> > > >> The clean fix requires twl4030 to be a "new style" driver.
> > > >> Fix not yet available. :(
> > > >
> > > > Pushing until we have a better fix.
> > >
> > > But twl4030 now is a "new style" driver, so we have a start :)
> >
> > But who's working on it? :)
> >
> > Sketch of solution:
> >
> > - twl4030.h defines keypad platform_data
> >
> > - add_children() adds a platform device for keypad,
> > and passes that platform_data
> >
> > - twl4030 keypad driver switches to platform_bus
> > and uses that platform_data
> >
> > - board-specific init code provides the relevant
> > platform_data (or none)
> >
> > I'll do the GPIO code, which will be a slightly more
> > interesting example than the RTC.
>
> I can do the keypad since I'm already working on the usb as well. Dave,
> I'm gonna add twl_has_rtc(), twl_had_keypad() and twl_has_usb() to clean
> a bit add_children. With those, we're gonna be able to:
>
> if (twl_has_keypad() && pdata->keypad) {
> ...
> }
Meanwhile I'll put together some patches for Jean to sync i2c_omap.c.
Tony
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
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
1 sibling, 1 reply; 11+ messages in thread
From: David Brownell @ 2008-09-24 15:34 UTC (permalink / raw)
To: felipe.balbi; +Cc: Koen Kooi, linux-omap@vger.kernel.org List
On Wednesday 24 September 2008, Felipe Balbi wrote:
>
> > I'll do the GPIO code, which will be a slightly more
> > interesting example than the RTC.
>
> I can do the keypad since I'm already working on the usb as well.
OK. Good to know folk are actively working on getting
this in shape for upstream!
> Dave,
> I'm gonna add twl_has_rtc(), twl_had_keypad() and twl_has_usb() to clean
> a bit add_children. With those, we're gonna be able to:
>
> if (twl_has_keypad() && pdata->keypad) {
> ...
> }
Sounds good. Fault handling might need attention too.
- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
2008-09-24 15:34 ` David Brownell
@ 2008-09-24 22:44 ` Felipe Balbi
2008-09-24 23:24 ` David Brownell
0 siblings, 1 reply; 11+ messages in thread
From: Felipe Balbi @ 2008-09-24 22:44 UTC (permalink / raw)
To: David Brownell; +Cc: felipe.balbi, Koen Kooi, linux-omap@vger.kernel.org List
On Wed, Sep 24, 2008 at 08:34:16AM -0700, David Brownell wrote:
> On Wednesday 24 September 2008, Felipe Balbi wrote:
> >
> > > I'll do the GPIO code, which will be a slightly more
> > > interesting example than the RTC.
> >
> > I can do the keypad since I'm already working on the usb as well.
>
> OK. Good to know folk are actively working on getting
> this in shape for upstream!
>
>
> > Dave,
> > I'm gonna add twl_has_rtc(), twl_had_keypad() and twl_has_usb() to clean
> > a bit add_children. With those, we're gonna be able to:
> >
> > if (twl_has_keypad() && pdata->keypad) {
> > ...
> > }
>
> Sounds good. Fault handling might need attention too.
Sure, think I was thinking that in case in run out of memory I'm gonna
stop trying to add any more children but leaving the ones we could
create up and running. What do you think ?
--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] OMAP3EVM: TWL4030 Keypad irq error fix
2008-09-24 22:44 ` Felipe Balbi
@ 2008-09-24 23:24 ` David Brownell
0 siblings, 0 replies; 11+ messages in thread
From: David Brownell @ 2008-09-24 23:24 UTC (permalink / raw)
To: me; +Cc: felipe.balbi, Koen Kooi, linux-omap@vger.kernel.org List
On Wednesday 24 September 2008, Felipe Balbi wrote:
>
> > > if (twl_has_keypad() && pdata->keypad) {
> > > ...
> > > }
> >
> > Sounds good. Fault handling might need attention too.
>
> Sure, think I was thinking that in case in run out of memory I'm gonna
> stop trying to add any more children but leaving the ones we could
> create up and running. What do you think ?
Pretty much my conclusion: report the problem, but continue.
In fact there's no point in returning error codes from that
routine...
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-09-24 23:24 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox