From: Marek Szyprowski Date: Mon, 20 Oct 2014 10:45:39 +0000 (+0200) Subject: usb: dwc2: gadget: fix calls to phy control functions in suspend/resume code X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~32^2~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b093f773b85dd816c5717193ec94a7cfec73a09;p=pandora-kernel.git 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 Signed-off-by: Marek Szyprowski Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed