diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-12 16:53:39 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-06-20 12:32:35 +0300 |
commit | 2eb8801650b315394ca376a56be2971c867aa9ec (patch) | |
tree | 1bd8d01f8d43149e84846c762eedc870b91e9978 /drivers/usb/dwc3/ep0.c | |
parent | 2cd4718d0bbe1906fcf517f0b254fbd7c072383a (diff) | |
download | linux-stable-2eb8801650b315394ca376a56be2971c867aa9ec.tar.gz linux-stable-2eb8801650b315394ca376a56be2971c867aa9ec.tar.bz2 linux-stable-2eb8801650b315394ca376a56be2971c867aa9ec.zip |
usb: dwc3: gadget: add a pointer to endpoint registers
By adding a pointer to endpoint registers' base
address, we can avoid using our controller-wide
struct dwc3 pointer for everything. At some point
this will allow us to have per-endpoint locks which
will, in turn, let us queue requests to separate
endpoints in parallel.
Because of this change our debugfs interface and io
accessors need to be changed accordingly.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/ep0.c')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index e08150a7cf8f..3103a8f4b7e5 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -106,9 +106,7 @@ static int dwc3_ep0_start_trans(struct dwc3 *dwc, u8 epnum, dma_addr_t buf_dma, } dep->flags |= DWC3_EP_BUSY; - dep->resource_index = dwc3_gadget_ep_get_transfer_index(dwc, - dep->number); - + dep->resource_index = dwc3_gadget_ep_get_transfer_index(dep); dwc->ep0_next_event = DWC3_EP0_COMPLETE; return 0; |