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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
> 
> > >
> > > > 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux