From: Oleg Drokin <green@linuxhacker.ru>
To: Mike Rapoport <mike@compulab.co.il>
Cc: linux-omap@vger.kernel.org, Felipe Balbi <balbi@ti.com>
Subject: Re: [PATCH 2/2] Add basic devices support for Nook Color
Date: Thu, 28 Apr 2011 12:10:09 -0400 [thread overview]
Message-ID: <5E4912CA-9E7A-423B-A8FA-DF16C0A4D242@linuxhacker.ru> (raw)
In-Reply-To: <4DB905CC.7030907@compulab.co.il>
Hello!
On Apr 28, 2011, at 2:14 AM, Mike Rapoport wrote:
>>>> +static struct omap_musb_board_data musb_board_data = {
>>>> + .interface_type = MUSB_INTERFACE_ULPI,
>>>> +#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
>>> This kind of ifdefery is handled inside the musb driver. I'd set the mode to
>>> MUSB_OTG unless you want to explicitly limit it to HOST or PERIPHERAL
>> Actually it's not.
>> If I set MUSB_OTG here and then I choose PERIPHERAL mode in the kernel config,
>> the musb transceiver code will complain about board file and kernel config mismatch.
>> The Nook Color is advertised as peripheral device, but OTG must be working too
>> (not totally working at this point) I think there is value to be able to configure it
>> in two different modes.
> Frankly, I haven't tried choosing different modes in the kernel config and in
> the board data. Still, I believe that board data should define desired operation
> mode and the driver should do the best effort to enable the controller in the
> desired mode.
The desired operation mode is dependent on musb configuration.
E.g. see n8x0 board file for the example of the same thing.
Bye,
Olg
next prev parent reply other threads:[~2011-04-28 16:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-27 1:52 Initial B&N Nook Color support green
2011-04-27 1:52 ` [PATCH 1/2] Initial B&N Nook Color (Encore) support green
2011-04-27 8:54 ` Mike Rapoport
2011-04-27 1:52 ` [PATCH 2/2] Add basic devices support for Nook Color green
2011-04-27 8:49 ` Mike Rapoport
2011-04-27 16:12 ` Oleg Drokin
2011-04-28 6:14 ` Mike Rapoport
2011-04-28 16:10 ` Oleg Drokin [this message]
2011-04-29 9:21 ` Felipe Balbi
2011-06-05 20:05 ` back-door musb USB host support Oleg Drokin
2011-06-06 9:30 ` Felipe Balbi
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=5E4912CA-9E7A-423B-A8FA-DF16C0A4D242@linuxhacker.ru \
--to=green@linuxhacker.ru \
--cc=balbi@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=mike@compulab.co.il \
/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).