linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Balbi <felipe.balbi@nokia.com>
To: "ext Gupta, Ajay Kumar" <ajay.gupta@ti.com>
Cc: David Brownell <david-b@pacbell.net>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Mankad, Maulik Ojas" <x0082077@ti.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"Balbi Felipe (Nokia-D/Helsinki)" <felipe.balbi@nokia.com>,
	Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH] ARM: OMAP: Fix board data to support device only, host only and OTG roles.
Date: Fri, 21 May 2010 09:52:18 +0300	[thread overview]
Message-ID: <20100521065218.GG925@nokia.com> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E7394044E535E9B@dbde02.ent.ti.com>

On Fri, May 21, 2010 at 07:15:37AM +0200, ext Gupta, Ajay Kumar wrote:
>Hi,
>> > +#ifdef CONFIG_USB_MUSB_OTG
>> > +    .mode
>> >         = MUSB_OTG,
>> > +#elif defined(CONFIG_USB_MUSB_HDRC_HCD)
>> > +    .mode
>> >         = MUSB_HOST,
>> > +#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
>> >      .mode
>> >         = MUSB_PERIPHERAL,
>> > +#endif
>>
>> >         = MUSB_PERIPHERAL,
>> > +#endif
>>
>> By the way ... the #ifdeffery should indeed vanish from all board
>> configs except the Davinci DM6446 EVM.
>
>If we are claiming to support:
>	A. Same kernel would work on multiple boards
>	B. Single kernel for one single board
>
>Then I think these #ifdefferys are required in all the board files.
>
>Let's consider the OMAP3EVM which supports all the three modes and

you don't support "all three modes" you support OTG. If you want to 
build for peripheral only, that's your choice, but the board is wired so 
that it has OTG support.

>If these #ifdefferys are not present and .mode is set to OTG.
>Then if I choose to compile the Kernel only for peripheral mode
>(Case-B above) then I would get below error from musb_core.c.
>
>"incompatible Kconfig role setting"

there's a patch making that a warning instead of an #error if I'm not 
wrong.

-- 
balbi

DefectiveByDesign.org
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2010-05-21  6:55 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
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 [this message]
     [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=20100521065218.GG925@nokia.com \
    --to=felipe.balbi@nokia.com \
    --cc=ajay.gupta@ti.com \
    --cc=david-b@pacbell.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=tony@atomide.com \
    --cc=x0082077@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;
as well as URLs for NNTP newsgroup(s).