From: Partha Basak <p-basak2@ti.com>
To: balbi@ti.com, Keshava Munegowda <keshava_mgowda@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>, Paul Walmsley <paul@pwsan.com>,
Benoit Cousson <b-cousson@ti.com>,
parthab@india.ti.com, linux-usb@vger.kernel.org,
linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
Anand Gadiyar <gadiyar@ti.com>,
sameo@linux.intel.com, tony@atomide.com,
Kevin Hilman <khilman@ti.com>,
johnstul@us.ibm.com, Vishwanath Sripathy <vishwanath.bs@ti.com>
Subject: RE: [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap3
Date: Tue, 27 Sep 2011 19:27:03 +0530 [thread overview]
Message-ID: <0b1de2fa258335ba9f7dde3baa41cee9@mail.gmail.com> (raw)
In-Reply-To: <20110927132453.GF19603@legolas.emea.dhcp.ti.com>
>-----Original Message-----
>From: Felipe Balbi [mailto:balbi@ti.com]
>Sent: Tuesday, September 27, 2011 6:55 PM
>To: Munegowda, Keshava
>Cc: t-kristo@ti.com; Paul Walmsley; Cousson, Benoit; Basak, Partha;
>Balbi, Felipe; parthab@india.ti.com; linux-usb@vger.kernel.org; linux-
>omap@vger.kernel.org; linux-kernel@vger.kernel.org; Gadiyar, Anand;
>sameo@linux.intel.com; tony@atomide.com; Hilman, Kevin;
>johnstul@us.ibm.com; Sripathy, Vishwanath
>Subject: Re: [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod
>structures for omap3
>
>Hi,
>
>On Tue, Sep 27, 2011 at 06:48:35PM +0530, Munegowda, Keshava wrote:
>> > So, you would need a mechanism to do something like this:
>> >
>> > pad a or b wakeup detected -> irq0
>> > pad c or d wakeup detected -> irq1?
>>
>> yes, if get something like this , its perfect.
>
>can't you have different IRQs for each pad ? I mean, allocate one
>irq_desc for each pad and let drivers request a pad/pin as an IRQ
>source. Then, when you detect a pad wakeup, you can:
>
>unsigned pad_irq = pad_number - pad->irq_base;
>
>handle_nested_thread(pad_irq);
>
>this will make use of threaded IRQ handlers even. Could it be something
>like that ?
Felipe, your suggestion would mean more design change from the existing
implementation of Tero.
I would propose something like what Tero said initially:
For each mux-info have an associated irq handler.
So, say pads a..d form mux info1. This gets associated to irq_handler1.
Similarly, say pads e..h form mux info2. This gets associated to
irq_handler2.
Both get associated to the same uhh_hwmod. Now, when chain handler scans
for wakeup sources,
it scans both mux-info1 & mux-info2.
If at-least one pad in mux-info1 is woken up, irqhandler1 is called & same
for irqhandler2.
This mechanism would need multiple mux-infos to be attached to the same
hwmod.
So, fundamentally, if we are in alignment, can we go ahead now to collapse
the ehci & ohci hwmods into one?
>
>--
>balbi
next prev parent reply other threads:[~2011-09-27 13:57 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-22 11:37 [PATCH 0/5 v11] mfd: omap: usb: Runtime PM support for EHCI and OHCI drivers Keshava Munegowda
2011-09-22 11:37 ` [PATCH 1/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap4 Keshava Munegowda
2011-09-22 11:37 ` [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap3 Keshava Munegowda
2011-09-22 11:37 ` [PATCH 3/5 v11] arm: omap: usb: register hwmods of usbhs Keshava Munegowda
2011-09-22 11:37 ` [PATCH 4/5 v11] arm: omap: usb: device name change for the clk names " Keshava Munegowda
2011-09-22 11:37 ` [PATCH 5/5 v11] mfd: omap: usb: Runtime PM support Keshava Munegowda
[not found] ` <1316691479-1849-3-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2011-09-22 18:01 ` [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap3 Paul Walmsley
[not found] ` <alpine.DEB.2.00.1109221115320.10719-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2011-09-23 10:04 ` Munegowda, Keshava
[not found] ` <CAP05o4+Zc2z6sBOX_rQeoDQ9PneypcLRCyBbaaB2m+ZjeXZnaw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-24 6:30 ` Paul Walmsley
2011-09-26 14:19 ` Munegowda, Keshava
2011-09-27 6:04 ` Partha Basak
2011-09-27 12:42 ` Tero Kristo
2011-09-27 13:18 ` Munegowda, Keshava
2011-09-27 13:24 ` Felipe Balbi
2011-09-27 13:57 ` Partha Basak [this message]
2011-09-27 14:38 ` Tero Kristo
2011-09-27 20:52 ` Felipe Balbi
2011-10-13 7:12 ` Munegowda, Keshava
2011-10-13 11:28 ` Tero Kristo
2011-10-13 11:49 ` Munegowda, Keshava
2011-10-28 12:03 ` Tero Kristo
2011-10-28 12:14 ` Munegowda, Keshava
2011-10-31 15:37 ` Valdis.Kletnieks
2011-09-24 7:15 ` Paul Walmsley
2011-09-26 14:21 ` Munegowda, Keshava
2011-09-26 14:45 ` Paul Walmsley
2011-09-28 12:08 ` Munegowda, Keshava
2011-09-30 8:32 ` Paul Walmsley
2011-09-30 9:36 ` Munegowda, Keshava
2011-09-30 18:16 ` Paul Walmsley
2011-10-04 11:55 ` Munegowda, Keshava
2011-09-22 18:14 ` [PATCH 1/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap4 Paul Walmsley
2011-09-22 19:28 ` Cousson, Benoit
2011-09-22 23:31 ` Paul Walmsley
2011-09-23 0:16 ` Paul Walmsley
2011-09-23 11:30 ` Munegowda, Keshava
2011-09-24 6:20 ` Paul Walmsley
[not found] ` <alpine.DEB.2.00.1109221524560.10719-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2011-09-26 22:00 ` Cousson, Benoit
2011-09-28 10:10 ` Ming Lei
2011-10-11 2:47 ` Paul Walmsley
2011-09-22 23:35 ` Paul Walmsley
2011-09-22 13:32 ` [PATCH 0/5 v11] mfd: omap: usb: Runtime PM support for EHCI and OHCI drivers Ming Lei
[not found] ` <CACVXFVOoHM14AqqH0CSpwNPef1QL+7MtgZOQZhYVSdgA=5KR4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-22 13:36 ` Munegowda, Keshava
2011-09-23 18:44 ` Kevin Hilman
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=0b1de2fa258335ba9f7dde3baa41cee9@mail.gmail.com \
--to=p-basak2@ti.com \
--cc=b-cousson@ti.com \
--cc=balbi@ti.com \
--cc=gadiyar@ti.com \
--cc=johnstul@us.ibm.com \
--cc=keshava_mgowda@ti.com \
--cc=khilman@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=parthab@india.ti.com \
--cc=paul@pwsan.com \
--cc=sameo@linux.intel.com \
--cc=t-kristo@ti.com \
--cc=tony@atomide.com \
--cc=vishwanath.bs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox