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 devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux