Re: [PATCH] usb: dwc2: host: Protect PCGCTL with lock in dwc2_port_resume()

2015-10-16 Thread John Youn
On 10/14/2015 3:58 PM, Douglas Anderson wrote: > 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. > > Signed-off-by: Douglas Anderson > --- > drivers/usb/dwc2/hcd.c | 5 -

[PATCH] usb: dwc2: host: Protect PCGCTL with lock in dwc2_port_resume()

2015-10-14 Thread Douglas Anderson
>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. Signed-off-by: Douglas Anderson --- drivers/usb/dwc2/hcd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git