Re: [PATCH 4/6] usb: gadget: add functions to signal udc driver to delay status stage

2018-12-14 Thread Alan Stern
On Thu, 13 Dec 2018, Paul Elder wrote: > > Suppose we have a core library routine like this: > > > > void usb_gadget_control_complete(struct usb_gadget *gadget, > > unsigned int no_implicit_status, int status) > > { > > struct usb_request *req; > > > > if (no_implicit_status

Re: [PATCH 4/6] usb: gadget: add functions to signal udc driver to delay status stage

2018-12-13 Thread Paul Elder
[snip] > > >> > Another thing we should do is give function drivers a way to send a > > >> > STALL response for the status stage. Currently there's no way to do > > >> > it, if a data stage is present. > > >> > > >> Status stage can only be stalled if host tries to move data on the wrong > > >>

Re: [PATCH 4/6] usb: gadget: add functions to signal udc driver to delay status stage

2018-11-07 Thread Alan Stern
On Wed, 7 Nov 2018, Felipe Balbi wrote: > Hi, > > Alan Stern writes: > >> Alan Stern writes: > >> > There's a similar race at the hardware level. What happens if the > >> > controller receives a new SETUP packet and concurrently the driver is > >> > setting up the controller registers for a

Re: [PATCH 4/6] usb: gadget: add functions to signal udc driver to delay status stage

2018-11-07 Thread Alan Stern
On Wed, 7 Nov 2018, Felipe Balbi wrote: > Hi, > > Alan Stern writes: > >> Alan Stern writes: > >> > There's a similar race at the hardware level. What happens if the > >> > controller receives a new SETUP packet and concurrently the driver is > >> > setting up the controller registers for a