RE: [PATCH 1/2] usb: dwc2: add ep enabled flag to avoid double enable/disable

2015-12-13 Thread Du, Changbin
Hi, Balbi, Please ignore this patch set. Because we have a fix in gadget API layer. [PATCH] usb: gadget: forbid queuing request to a disabled ep > > Enabling an already enabled ep is illegal, because the ep may has trbs > > running. Reprogram the ep may break running transfer. So udc driver > > mu

Re: [PATCH 1/2] usb: dwc2: add ep enabled flag to avoid double enable/disable

2015-12-10 Thread Felipe Balbi
Hi, changbin...@intel.com writes: > From: "Du, Changbin" > > Enabling a already enabled ep is illegal, because the ep may has trbs > running. Reprogram the ep may break running transfer. So udc driver > must avoid this happening by return an error -EBUSY. Gadget function > driver also should avo