]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc2: gadget: EP 0 specific DDMA programming
authorVahram Aharonyan <vahrama@synopsys.com>
Tue, 15 Nov 2016 03:16:24 +0000 (19:16 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:44 +0000 (13:54 +0200)
commite02f9aa6119e0a5a32b4d08e2c26f6b1381dc8a2
treee970ad3a3509db9e3b13b7eaf6f7f20c419e2039
parent8ad07335e81183bacdabf080efa5120d573d6f94
usb: dwc2: gadget: EP 0 specific DDMA programming

Add dwc2_gadget_set_ep0_desc_chain() function to switch between EP0 DDMA
chains depend on the stage of control transfer.

Include EP0 DDMA chain selection during ep_queue called from
dwc2_hsotg_enqueue_setup() for setup stage. Selecting and filling DDMA
chain for status phase as well - add calls of
dwc2_gadget_set_ep0_desc_chain() and
dwc2_gadget_config_nonisoc_xfer_ddma() functions.

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/gadget.c