usb: dwc3: gadget: initialize transfer index from send_gadget_ep_cmd()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 11 Apr 2018 09:58:46 +0000 (12:58 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:01:01 +0000 (10:01 +0300)
commitd7ca7e1896b27eaca936ff8ff3abdd2492b55a34
tree06fda06464f6e5f9e9876887b116a7d03977cc04
parent4439661d64f5afa77f2df1e3450da5e22ab6532e
usb: dwc3: gadget: initialize transfer index from send_gadget_ep_cmd()

Instead of *always* calling dwc3_gadget_ep_get_transfer_index() after
sending a Start Transfer command, we can call it once from
dwc3_send_gadget_ep_cmd() itself.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c