usb: dwc2: gadget: fix calls to phy control functions in suspend/resume code
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 20 Oct 2014 10:45:39 +0000 (12:45 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:23 +0000 (10:01 -0600)
commit7b093f773b85dd816c5717193ec94a7cfec73a09
treecb30b4e7b4c368fd5467b03c59c8001a8e35184b
parent5b9451f8c4fbaf0549139755fb45ff2b57975b7f
usb: dwc2: gadget: fix calls to phy control functions in suspend/resume code

This patch moves calls to phy enable/disable out of spinlock protected
blocks in device suspend/resume to fix incorrect caller context. Phy
related functions must not be called from atomic context. To protect
device internal state from a race during suspend, a call to
s3c_hsotg_core_disconnect() is added under a spinlock, what prevents any
further activity on the usb bus.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c
This page took 0.025462 seconds and 5 git commands to generate.