From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Premi, Sanjeev" <premi@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 3/3] OMAP3: PM: Wakeup from TWL4030 keypad with OFF mode
Date: Tue, 16 Feb 2010 16:54:01 -0600 [thread overview]
Message-ID: <874olgkd12.fsf@deeprootsystems.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB59301E259DEEC@dbde02.ent.ti.com> (Sanjeev Premi's message of "Fri\, 5 Feb 2010 13\:36\:59 +0530")
"Premi, Sanjeev" <premi@ti.com> writes:
>> -----Original Message-----
>> From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
>> Sent: Friday, February 05, 2010 3:22 AM
>> To: Premi, Sanjeev
>> Cc: linux-omap@vger.kernel.org
>> Subject: Re: [PATCH 3/3] OMAP3: PM: Wakeup from TWL4030
>> keypad with OFF mode
>>
>> Sanjeev Premi <premi@ti.com> writes:
>>
>> > This patch allows wakeup from TWL4030 keypad when
>> > OFF mode is hit during suspend.
>> >
>> > Tested on OMAP3EVM.
>> >
>> > Signed-off-by: Sanjeev Premi <premi@ti.com>
>>
>> The idea here looks good, but there is nothing realy EVM specific here
>> AFAICT, and this exact code could be used on any other board using
>> the T2 keypad, right? How about a common location?
>
> [sp] The EVM uses SYS_NIRQ for hooking up with the T2 keypad. Not
> sure of everyone would be doing so. Also, PADCONFs are more
> applicable for OMAP3, but T2 can be used with other processors
> as well...
>
> I did initially inplement these functions in:
> drivers/input/keyboard/twl4030_keypad.c
>
> ...but then moved to board specific file.
I know at least SDP and EVM have these hooked up identically, so some common
way to set them up would be preferred. Maybe a mach-omap2/t2-keypad.c that
could be shared between various board files. The board files would still
configure the IRQ line and the padconfs used.
Kevin
>>
>> Also, after looking at this patch, I think the 'void *pstate' member
>> of struct twl4030_keypad_data should be renamed to 'void *data' to
>> be more clear that it's just a pointer.
>
> [sp] Will make the change. However, will wait for your response on the
> earlier comment before re-submit.
>
> ~sanjeev
>
>>
>> Kevin
>>
>>
>
> [snip]--[snip]
next prev parent reply other threads:[~2010-02-16 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 16:07 [PATCH 3/3] OMAP3: PM: Wakeup from TWL4030 keypad with OFF mode Sanjeev Premi
2010-02-04 21:51 ` Kevin Hilman
2010-02-05 8:06 ` Premi, Sanjeev
2010-02-16 22:54 ` Kevin Hilman [this message]
2010-02-17 11:17 ` Premi, Sanjeev
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=874olgkd12.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=premi@ti.com \
/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.