Re: [PATCH 06/30] usb: dwc2: gadget: Add DMA descriptor chains for EP 0

2016-11-08 Thread Felipe Balbi
Hi, John Youn writes: > diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c > index 3ab4d60..85fc459 100644 > --- a/drivers/usb/dwc2/gadget.c > +++ b/drivers/usb/dwc2/gadget.c > @@ -324,6 +324,56 @@ static void dwc2_hsotg_unmap_dma(struct dwc2_hsotg > *hsotg, > usb_gadget_u

[PATCH 06/30] usb: dwc2: gadget: Add DMA descriptor chains for EP 0

2016-11-07 Thread John Youn
From: Vahram Aharonyan Update dwc2_hsotg structure to add descriptor chains for EP 0: two DMA descriptors for Setup phase, per one for IN/OUT data and status phases. Add their allocation function dwc2_gadget_alloc_ctrl_desc_chains() and its call during gadget probe. Signed-off-by: Vahram Aharony