From: David Brownell <david-b@pacbell.net>
To: "Vladimir A. Barinov" <vbarinov@ru.mvista.com>
Cc: Peter Popov <ppopov@embeddedalley.com>,
linux-mips@linux-mips.org, ralf@linux-mips.org,
linux-usb-devel@lists.sourceforge.net
Subject: Re: [PATCH] Philips PNX8550 USB Host driver compile fix
Date: Fri, 9 Dec 2005 15:20:26 -0800 [thread overview]
Message-ID: <200512091520.26719.david-b@pacbell.net> (raw)
In-Reply-To: <439864A6.9070104@ru.mvista.com>
On Thursday 08 December 2005 8:51 am, Vladimir A. Barinov wrote:
> Hello Ralf, David,
>
> Could you please advise.
> What is the right solution in the situation when USB PCI and on-chip USB
> used in the situation when we want ohci-hcd to be a module?
>
> Vladimir
>
> Peter Popov wrote:
>
> >I suppose the right solution is to be able to use the
> >on-chip usb controller as well as an external pci
> >controller. I don't think anyone will do that though.
I'm not sure why they wouldn't. Full speed controllers
have limited bandwidth, people sometimes want more than
one just to get enough bandwidth to do whatever it is
they need USB to help with.
> >>The current ohci-hcd driver is a little defective.
> >>It's unable to use usb-ohci as modules in the case
> >>when PCI and on-chip USB are enabled.
> >>It just will not be compiled since there are two
> >>calls if module_init in ohci-hcd.
I think it'd be reasonable to expect that the two
options be (a) PCI version and/or (b) some SOC version.
Since I've never heard of a discrete OHCI part, I'll
suspect the posibillity of having several of them on
some external parallel bus is low...
Suggesting that what's needed is more at the level of
having the module_init code call a pair of #definable
routnes -- call them 'register_platform_ohci()' and
'register_pci_ohci() -- to handle either or both cases.
Then #ifndef register_platform_ohci, #define it as NOP;
likewise for the PCI version. And for the unregisters.
I'd certainly OK merging that; it'd be general enough
to work on non-PNX hardware too.
- Dave
next prev parent reply other threads:[~2005-12-09 23:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-06 18:23 [PATCH] Philips PNX8550 USB Host driver compile fix Vladimir A. Barinov
2005-12-06 19:35 ` Peter Popov
2005-12-08 16:51 ` Vladimir A. Barinov
2005-12-09 23:20 ` David Brownell [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-12-06 18:22 Vladimir A. Barinov
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=200512091520.26719.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-mips@linux-mips.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=ppopov@embeddedalley.com \
--cc=ralf@linux-mips.org \
--cc=vbarinov@ru.mvista.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