usb: dwc3: core: don't do suspend for device mode if already suspended
authorLi Jun <jun.li@nxp.com>
Wed, 19 Feb 2020 16:20:04 +0000 (00:20 +0800)
committerFelipe Balbi <balbi@kernel.org>
Sun, 15 Mar 2020 09:31:36 +0000 (11:31 +0200)
commit0227cc84c44417a29c8102e41db8ec2c11ebc6b2
tree5ea5b97eb5f1890236ad91becdb82cfa2b5f68f6
parent4a1d042af4209544dba2196c2e92803907c3db88
usb: dwc3: core: don't do suspend for device mode if already suspended

If dwc->dev in device mode already runtime suspended, don't do it again
for system suspend.

Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/core.c