]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: dwc2: host: Protect PCGCTL with lock in dwc2_port_resume()
authorDouglas Anderson <dianders@chromium.org>
Wed, 14 Oct 2015 22:58:27 +0000 (15:58 -0700)
committerFelipe Balbi <balbi@ti.com>
Fri, 16 Oct 2015 19:44:15 +0000 (14:44 -0500)
commit4d273c2af0fe4fdc84eef27e4521694dc7992065
treeaa2a089e4da05ac54cf9ef44694fe545ae349e3e
parent3bbafac83775425d0abb68cf9837ee3ca36adb42
usb: dwc2: host: Protect PCGCTL with lock in dwc2_port_resume()

From code inspection, it appears to be unsafe to do a read-modify-write
of PCGCTL in dwc2_port_resume().  Let's make sure the spinlock is held
around this operation.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/hcd.c