Re: [PATCH] dwc2: gadget: Fix in control write transfers

2017-04-03 Thread Felipe Balbi
Hi, Minas Harutyunyan writes: >> Minas Harutyunyan writes: >>> After data out stage gadget driver should not initate ZLP on control EP, >>> because it is up to function driver. >> >> not true always, depends on return value from ->setup(). Which problem >> did you have? Which gadget driver? How

Re: [PATCH] dwc2: gadget: Fix in control write transfers

2017-04-02 Thread Minas Harutyunyan
Hi, On 3/30/2017 2:42 PM, Felipe Balbi wrote: > > Hi, > > Minas Harutyunyan writes: >> After data out stage gadget driver should not initate ZLP on control EP, >> because it is up to function driver. > > not true always, depends on return value from ->setup(). Which problem > did you have? Which

Re: [PATCH] dwc2: gadget: Fix in control write transfers

2017-03-30 Thread Felipe Balbi
Hi, Minas Harutyunyan writes: > After data out stage gadget driver should not initate ZLP on control EP, > because it is up to function driver. not true always, depends on return value from ->setup(). Which problem did you have? Which gadget driver? How did you reproduce? Which other tests did

[PATCH] dwc2: gadget: Fix in control write transfers

2017-03-28 Thread Minas Harutyunyan
After data out stage gadget driver should not initate ZLP on control EP, because it is up to function driver. Signed-off-by: Minas Harutyunyan --- drivers/usb/dwc2/gadget.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drive