diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-29 13:07:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-29 13:07:59 -0400 |
commit | 9af6f26a1a7f152f7736c0c20247eef0ab3df190 (patch) | |
tree | 6cbf30a8a08bae27bc17a0a4dcee72f15a11b6c7 /drivers/usb/renesas_usbhs/rcar3.c | |
parent | c067affcd316a36a28beaf8ea8c39db22a88c778 (diff) | |
parent | c1aa67729a1d94373fb9826fef97b8a2b7f2e00f (diff) |
Merge tag 'usb-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB fixes from Greg KH:
"Here are a number of small USB driver fixes for 4.9-rc3.
There is the usual number of gadget and xhci patches in here to
resolved reported issues, as well as some usb-serial driver fixes and
new device ids.
All have been in linux-next with no reported issues"
* tag 'usb-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (26 commits)
usb: chipidea: host: fix NULL ptr dereference during shutdown
usb: renesas_usbhs: add wait after initialization for R-Car Gen3
usb: increase ohci watchdog delay to 275 msec
usb: musb: Call pm_runtime from musb_gadget_queue
usb: musb: Fix hardirq-safe hardirq-unsafe lock order error
usb: ehci-platform: increase EHCI_MAX_RSTS to 4
usb: ohci-at91: Set RemoteWakeupConnected bit explicitly.
USB: serial: fix potential NULL-dereference at probe
xhci: use default USB_RESUME_TIMEOUT when resuming ports.
xhci: workaround for hosts missing CAS bit
xhci: add restart quirk for Intel Wildcatpoint PCH
USB: serial: cp210x: fix tiocmget error handling
wusb: fix error return code in wusb_prf()
Revert "Documentation: devicetree: dwc2: Deprecate g-tx-fifo-size"
Revert "usb: dwc2: gadget: fix TX FIFO size and address initialization"
Revert "usb: dwc2: gadget: change variable name to more meaningful"
USB: serial: ftdi_sio: add support for Infineon TriBoard TC2X7
wusb: Stop using the stack for sg crypto scratch space
usb: dwc3: Fix size used in dma_free_coherent()
usb: gadget: f_fs: stop sleeping in ffs_func_eps_disable
...
Diffstat (limited to 'drivers/usb/renesas_usbhs/rcar3.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/rcar3.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/rcar3.c b/drivers/usb/renesas_usbhs/rcar3.c index 1d70add926f0..d544b331c9f2 100644 --- a/drivers/usb/renesas_usbhs/rcar3.c +++ b/drivers/usb/renesas_usbhs/rcar3.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/delay.h> | ||
12 | #include <linux/io.h> | 13 | #include <linux/io.h> |
13 | #include "common.h" | 14 | #include "common.h" |
14 | #include "rcar3.h" | 15 | #include "rcar3.h" |
@@ -35,10 +36,13 @@ static int usbhs_rcar3_power_ctrl(struct platform_device *pdev, | |||
35 | 36 | ||
36 | usbhs_write32(priv, UGCTRL2, UGCTRL2_RESERVED_3 | UGCTRL2_USB0SEL_OTG); | 37 | usbhs_write32(priv, UGCTRL2, UGCTRL2_RESERVED_3 | UGCTRL2_USB0SEL_OTG); |
37 | 38 | ||
38 | if (enable) | 39 | if (enable) { |
39 | usbhs_bset(priv, LPSTS, LPSTS_SUSPM, LPSTS_SUSPM); | 40 | usbhs_bset(priv, LPSTS, LPSTS_SUSPM, LPSTS_SUSPM); |
40 | else | 41 | /* The controller on R-Car Gen3 needs to wait up to 45 usec */ |
42 | udelay(45); | ||
43 | } else { | ||
41 | usbhs_bset(priv, LPSTS, LPSTS_SUSPM, 0); | 44 | usbhs_bset(priv, LPSTS, LPSTS_SUSPM, 0); |
45 | } | ||
42 | 46 | ||
43 | return 0; | 47 | return 0; |
44 | } | 48 | } |