RE: [PATCH] usb: gadget: f_ncm: fix wrong usb_ep

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

 



 
> >Does your UDC driver call composite_disconnect when disconnect from the host?
> >It should set all desc to NULL at related function ->disable.
> 
> For ECM case, if ecm_set_alt() gets called with alt == 0, in_ep->desc and out_ep-
> >desc will be set up. But these two ep will not be enabled as gether_connect() is not
> executed. During disconnect from the host, ecm_disable() gets called with ep
> disabled. In this case, gether_disconnect() will not get called to set desc to NULL.

Would you please share your test case? I use Linux host, and the host will always set alt for 1,
and doesn't have this issue.

Peter




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

  Powered by Linux