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. PeterHow 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