On Thu, Sep 09, 2021 at 05:32:32PM +0800, Linyu Yuan wrote: > when do role switch from device to host mode, > first disable device mode, currently there is no better way to > confirm when gadget was complete removed. > > change device release function to clear gadget pointer, > this will confirm device stop complete when it is NULL. Where is this check happening? If there is nothing in the tree today that checks for this, why is this needed? Does this fix a specific commit in the past? If so, what one? thanks, greg k-h