From: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
To: "ext Gadiyar, Anand" <gadiyar-l0cyMroinI0@public.gmane.org>
Cc: "me-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org"
<me-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org>,
"linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH RFC 2/5] usb: ohci: introduce omap3 ohci-hcd driver
Date: Tue, 23 Mar 2010 14:27:06 +0200 [thread overview]
Message-ID: <20100323122706.GA18273@nokia.com> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB03220FBD5A-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
On Mon, Mar 22, 2010 at 07:53:32AM +0100, ext Gadiyar, Anand wrote:
>> > + void __iomem *uhh_base;
>> > + void __iomem *tll_base;
>> > + void __iomem *ohci_base;
>>
>> this is something we need to think carefully, right ? I believe ehci is
>> already ioremap()ing uhh_base and tll_base ??
>>
>
>Correct. In it's current form, ehci and ohci will be mutually exclusive.
>We'll need to fix this later, but I was hoping to get this driver
>in so people can actually use it and test.
>
>Nobody can use EHCI and OHCI together on OMAP3 today anyway - the only
>problem we'll have right now is that we cannot build-in both drivers in
>the kernel at the same time.
>
>I'll work on getting this in place. I was thinking of moving uhh_* and tll_*
>configuration out of these two drivers and into mach-omap2/usb-ehci.c.
>Along with this, we have the board files specify one set of port-modes for
>each port, instead of one set each for EHCI and OHCI. Then, based on this,
>we can ioremap and configure the UHH and TLL blocks once during init.
>
>What do you think?
I was thinking more on the direction of having a core platform_driver
instantiate ehci and ohci platform_drivers and pass the ioremaped uhh
and tll bases down as, e.g. platform_data. But I don't know still.
Having the board code ioremap() that area doesn't sound good. Maybe
someone else on linux-omap or linux-usb would have good tips ??
>> > + .shutdown = ohci_hcd_omap_shutdown,
>> > + .driver = {
>> > + .name = "ohci-omap3",
>> > + },
>>
>> no suspend/resume yet ?? :-(
>>
>
>I made this as similar to the current ehci-omap driver as possible.
>I wanted to get the functionality in, while I work on adding the
>power-management support.
ok makes sense :-)
--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-03-23 12:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-21 11:31 [PATCH RFC 0/5] usb: ohci: introduce ohci-hcd driver for omap3 Anand Gadiyar
2010-03-21 11:31 ` [PATCH RFC 1/5] omap3: add platform init code for OHCI driver Anand Gadiyar
2010-03-21 11:32 ` [PATCH RFC 2/5] usb: ohci: introduce omap3 ohci-hcd driver Anand Gadiyar
2010-03-21 11:32 ` [PATCH RFC 3/5] usb: ohci: Add Kconfig entries for ohci-omap3 Anand Gadiyar
2010-03-21 11:32 ` [PATCH RFC 4/5] omap: 3430sdp: add ohci platform init Anand Gadiyar
[not found] ` <1269171123-9874-5-git-send-email-gadiyar-l0cyMroinI0@public.gmane.org>
2010-03-21 11:32 ` [PATCH RFC 5/5] omap: 3630sdp: " Anand Gadiyar
[not found] ` <1269171123-9874-3-git-send-email-gadiyar-l0cyMroinI0@public.gmane.org>
2010-03-21 18:43 ` [PATCH RFC 2/5] usb: ohci: introduce omap3 ohci-hcd driver Felipe Balbi
2010-03-22 6:53 ` Gadiyar, Anand
[not found] ` <5A47E75E594F054BAF48C5E4FC4B92AB03220FBD5A-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-03-23 12:27 ` Felipe Balbi [this message]
2010-03-22 16:15 ` Aguirre, Sergio
[not found] ` <1269171123-9874-2-git-send-email-gadiyar-l0cyMroinI0@public.gmane.org>
2010-03-21 18:26 ` [PATCH RFC 1/5] omap3: add platform init code for OHCI driver Felipe Balbi
2010-03-22 16:01 ` Aguirre, Sergio
2010-03-23 9:35 ` Gadiyar, Anand
2010-03-24 8:17 ` [PATCH RFC 0/5] usb: ohci: introduce ohci-hcd driver for omap3 Gregory CLEMENT
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=20100323122706.GA18273@nokia.com \
--to=felipe.balbi-xnzwkgviw5gavxtiumwx3w@public.gmane.org \
--cc=gadiyar-l0cyMroinI0@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=me-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox