]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc2: gadget: Add DMA descriptor chains for EP 0
authorVahram Aharonyan <vahrama@synopsys.com>
Thu, 10 Nov 2016 03:27:56 +0000 (19:27 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:19 +0000 (13:54 +0200)
commit0f6b80c0dbba7e0a76b6761e0f78d064b2ac9c17
treeee24ce389b1058121e49b79f7a14fee4f5915e00
parente6fcfb57c6f7cac1dc44cbb4e0cda5d6eef64fe0
usb: dwc2: gadget: Add DMA descriptor chains for EP 0

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 Aharonyan <vahrama@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c