diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 20:07:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 20:07:21 -0400 |
commit | 42e3a58b028e0e51746f596a11abfec01cd1c5c4 (patch) | |
tree | b2dd1e8730359dc312519bcdaed9c52bae622990 /drivers/usb/gadget/udc/lpc32xx_udc.c | |
parent | 4fd48b45ffc4addd3c2963448b05417aa14abbf7 (diff) | |
parent | 00fe52deb45b1a5ef42b0aa82e632e2df012eddc (diff) |
Merge tag 'usb-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB driver updates from Greg KH:
"Here's the big USB (and PHY) driver patchset for 4.1-rc1.
Everything here has been in linux-next, and the full details are below
in the shortlog. Nothing major, just the normal round of new
drivers,api updates, and other changes, mostly in the USB gadget area,
as usual"
* tag 'usb-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (252 commits)
drivers/usb/core: devio.c: Removed an uneeded space before tab
usb: dwc2: host: sleep USB_RESUME_TIMEOUT during resume
usb: chipidea: debug: add low power mode check before print registers
usb: chipidea: udc: bypass pullup DP when gadget connect in OTG fsm mode
usb: core: hub: use new USB_RESUME_TIMEOUT
usb: isp1760: hcd: use new USB_RESUME_TIMEOUT
usb: dwc2: hcd: use new USB_RESUME_TIMEOUT
usb: host: sl811: use new USB_RESUME_TIMEOUT
usb: host: r8a66597: use new USB_RESUME_TIMEOUT
usb: host: oxu210hp: use new USB_RESUME_TIMEOUT
usb: host: fusbh200: use new USB_RESUME_TIMEOUT
usb: host: fotg210: use new USB_RESUME_TIMEOUT
usb: host: isp116x: use new USB_RESUME_TIMEOUT
usb: musb: use new USB_RESUME_TIMEOUT
usb: host: uhci: use new USB_RESUME_TIMEOUT
usb: host: ehci: use new USB_RESUME_TIMEOUT
usb: host: xhci: use new USB_RESUME_TIMEOUT
usb: define a generic USB_RESUME_TIMEOUT macro
usb: musb: dsps: fix build on i386 when COMPILE_TEST is set
ehci-hub: use USB_DT_HUB
...
Diffstat (limited to 'drivers/usb/gadget/udc/lpc32xx_udc.c')
-rw-r--r-- | drivers/usb/gadget/udc/lpc32xx_udc.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index 27fd41333f71..3b6a7852822d 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c | |||
@@ -1803,23 +1803,14 @@ static int lpc32xx_ep_queue(struct usb_ep *_ep, | |||
1803 | req = container_of(_req, struct lpc32xx_request, req); | 1803 | req = container_of(_req, struct lpc32xx_request, req); |
1804 | ep = container_of(_ep, struct lpc32xx_ep, ep); | 1804 | ep = container_of(_ep, struct lpc32xx_ep, ep); |
1805 | 1805 | ||
1806 | if (!_req || !_req->complete || !_req->buf || | 1806 | if (!_ep || !_req || !_req->complete || !_req->buf || |
1807 | !list_empty(&req->queue)) | 1807 | !list_empty(&req->queue)) |
1808 | return -EINVAL; | 1808 | return -EINVAL; |
1809 | 1809 | ||
1810 | udc = ep->udc; | 1810 | udc = ep->udc; |
1811 | 1811 | ||
1812 | if (!_ep) { | 1812 | if (udc->gadget.speed == USB_SPEED_UNKNOWN) |
1813 | dev_dbg(udc->dev, "invalid ep\n"); | 1813 | return -EPIPE; |
1814 | return -EINVAL; | ||
1815 | } | ||
1816 | |||
1817 | |||
1818 | if ((!udc) || (!udc->driver) || | ||
1819 | (udc->gadget.speed == USB_SPEED_UNKNOWN)) { | ||
1820 | dev_dbg(udc->dev, "invalid device\n"); | ||
1821 | return -EINVAL; | ||
1822 | } | ||
1823 | 1814 | ||
1824 | if (ep->lep) { | 1815 | if (ep->lep) { |
1825 | struct lpc32xx_usbd_dd_gad *dd; | 1816 | struct lpc32xx_usbd_dd_gad *dd; |