Thread (5 messages) 5 messages, 2 authors, 2015-06-24

RE: [PATCH v5 08/23] usb: chipidea: set usb gadeget's otg capabilities

From: Peter Chen <hidden>
Date: 2015-06-24 07:44:47

 
quoted
quoted
quoted
For non-dt platform (eg i686), how it changes otg capabilities
through their platform data?
Directly override platdata->ci_otg_caps in its platform driver after
ci_hdrc_add_device().
After ci_hdrc_add_device, the device may begin to enumerate, we need
to make sure otg capabilities before the device goes to work.

Peter
How about add a flag for platdata->flags like if (platdata->flags &
CI_HDRC_USE_PREDEF_OTG_CAPS == 0) {
	... ...
}
then non-dt platform driver can set CI_HDRC_USE_PREDEF_OTG_CAPS flag
and pre-define otg caps before call to ci_hdrc_add_device().
Add Andy Shevchenko.

I think the current i686 platforms does not support full otg, you may not need
to consider this to avoid unnecessary complexities,  unless someone wants.
 
Peter
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help