aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-pci-wrap.c
diff options
context:
space:
mode:
authorNeil Armstrong <[email protected]>2019-08-21 13:35:18 +0000
committerFelipe Balbi <[email protected]>2019-08-28 10:04:59 +0000
commit1cf084d161f40baf4aa6976bb2dcef114adbebd6 (patch)
tree011d890f4958fadaa249789d96a185cef1bc1216 /drivers/usb/cdns3/cdns3-pci-wrap.c
parentusb: udc: lpc32xx: remove set but not used 3 variables (diff)
downloadkernel-1cf084d161f40baf4aa6976bb2dcef114adbebd6.tar.gz
kernel-1cf084d161f40baf4aa6976bb2dcef114adbebd6.zip
usb: dwc3: meson-g12a: fix suspend resume regulator unbalanced disables
When going in suspend, in Device mode, then resuming back leads to the following: unbalanced disables for USB_PWR_EN WARNING: CPU: 0 PID: 163 at ../drivers/regulator/core.c:2590 _regulator_disable+0x104/0x180 Hardware name: Amlogic Meson G12A U200 Development Board (DT) [...] pc : _regulator_disable+0x104/0x180 lr : _regulator_disable+0x104/0x180 [...] Call trace: _regulator_disable+0x104/0x180 regulator_disable+0x40/0x78 dwc3_meson_g12a_otg_mode_set+0x84/0xb0 dwc3_meson_g12a_irq_thread+0x58/0xb8 irq_thread_fn+0x28/0x80 irq_thread+0x118/0x1b8 kthread+0xf4/0x120 ret_from_fork+0x10/0x18 This disables the regulator if enabled on suspend, and the reverse on resume. Fixes: c99993376f72 ("usb: dwc3: Add Amlogic G12A DWC3 glue") Tested-by: Kevin Hilman <[email protected]> Reported-by: Kevin Hilman <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions