From: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
To: ext David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
Cc: Maulik OjasMankad <x0082077-l0cyMroinI0@public.gmane.org>,
"linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Ajay KumarGupta <ajay.gupta-l0cyMroinI0@public.gmane.org>,
"linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Balbi Felipe (Nokia-D/Helsinki)"
<felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>,
Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH] ARM: OMAP: Fix board data to support device only, host only and OTG roles.
Date: Thu, 20 May 2010 18:16:22 +0300 [thread overview]
Message-ID: <20100520151622.GB13016@nokia.com> (raw)
In-Reply-To: <304844.15257.qm-4JhmkcZgSkkHBU+L9ui1Svu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
On Thu, May 20, 2010 at 05:15:30PM +0200, ext David Brownell wrote:
>
>> I think better remove .mode parameter from board_data if
>> its not needed anyways
>
>But it *IS* needed, as I explained before...
>
>
>
>> if some board
>> supports only some specific mode they can select those
>> specifc config only.
>
>No they can't. Recall that kernels are expected to run on
>multiple boards. Which means that the same kernel should be
>able to work correctly on a board with a peripheral-only USB
>connector ... and on a board with an OTG connector. The way
>to pass that information to the MUSB driver is through the
>platform data. On the peripheral-only config the host code
>won't kick in. On the OTG-enabled config, it will kick in
>as needed (as will the peripheral mode). And so on.
>
>If you were to rely on Kconfig options, then at least one of
>those boards would work incorrectly. So that's not an option.
that's basically why I had made mode a parameter to usb_musb_init() so
boards could pass they're own configuration. We still have the Kconfig
to allow single board peripheral only defconfigs (line n900_defconfig)
to remove unnecessary code from the kernel.
--
balbi
DefectiveByDesign.org
--
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-05-20 15:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 13:09 [PATCH] ARM: OMAP: Fix board data to support device only, host only and OTG roles Maulik Mankad
2010-05-20 14:00 ` Gupta, Ajay Kumar
2010-05-20 15:15 ` David Brownell
[not found] ` <304844.15257.qm-4JhmkcZgSkkHBU+L9ui1Svu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-05-20 15:16 ` Felipe Balbi [this message]
2010-05-20 15:40 ` David Brownell
[not found] ` <1274360966-9974-1-git-send-email-x0082077-l0cyMroinI0@public.gmane.org>
2010-05-20 15:48 ` David Brownell
2010-05-21 5:15 ` Gupta, Ajay Kumar
2010-05-21 6:52 ` Felipe Balbi
[not found] ` <20100521065218.GG925-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-05-21 7:43 ` Gupta, Ajay Kumar
[not found] ` <19F8576C6E063C45BE387C64729E7394044E535F3E-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-05-21 8:48 ` Felipe Balbi
2010-05-23 16:21 ` David Brownell
2010-05-23 16:33 ` David Brownell
[not found] ` <420791.3389.qm-g47maUHHHF8HBU+L9ui1Svu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-05-28 15:36 ` Gadiyar, Anand
2010-05-28 15:48 ` Ming Lei
2010-05-28 15:55 ` Ming Lei
2010-05-28 18:27 ` Steve Sakoman
2010-05-28 18:32 ` David Brownell
[not found] ` <987022.25256.qm-g47maUHHHF/6X00i2u5GFvu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-05-31 9:44 ` Grazvydas Ignotas
2010-05-31 9:56 ` Felipe Balbi
[not found] ` <AANLkTin-Ud-BdQ3lcydqZx7Tb1YoBq05XCONeYqxWhZm-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-05-31 12:53 ` David Brownell
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=20100520151622.GB13016@nokia.com \
--to=felipe.balbi-xnzwkgviw5gavxtiumwx3w@public.gmane.org \
--cc=ajay.gupta-l0cyMroinI0@public.gmane.org \
--cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
--cc=x0082077-l0cyMroinI0@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;
as well as URLs for NNTP newsgroup(s).