>>>>> "David" == David Brownell <[EMAIL PROTECTED]> writes:

Sorry for the slow response, things have been kinda crazy around here
..

David> You didn't get my point.  Those patches add options for host,
David> and for peripheral/gadget.  But not OTG, which is the only
David> legit way to combine the two... you should have a "choice" of
David> the three, not two independent options.

Yes, OTG is the only way to combine the functionality of a single SIE,
but these chips have 2 SIEs. The plan was to let the platform
configure the mode of each SIE through the platform data (host,
peripheral or OTG).

The driver then has config options for enabling host, peripheral and
OTG (which selects host+peripheral) support.

>> I know. I'm unfortunately pretty clueless of the finer details of
>> the driver model.

David> I suppose we can could educate you ... if we must ... ;)

Great ;)

>> The chips have 2 (more-or-less) independent SIEs. The idea was to
>> have seperate hcd/udc's for each SIE, which I guess means seperate
>> struct devices?

David> Doesn't mean separate device structs, no.

David> Means separate HCD structs, yes ... parented by the single
David> device node.  And this being USB, there can be only one
David> gadget/udc struct, again parented by the single device node.

Ahh ok, then I can get of that stuff. I'll update the patch.

David> The normal way to arrange that is to have the platform_data for
David> that device say how that board works: mode of SIE0 is
David> host/otg/peripheral; of SIE1 is host/peripheral; and have your
David> probe() logic report errors like configuring two peripheral
David> ports (or one peripheral and one OTG, or one peripheral and one
David> host).  The simple way to think of that is: what kind of
David> connector is hooked up?  A/Mini-A; B/Mini-B; or Mini-AB.

That's pretty much like it's structured now (except that the OTG
support isn't there yet).

Thanks for the comments.

-- 
Bye, Peter Korsgaard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to