linux-stable/drivers/usb
Artur Petrosyan fd5ce87aee usb: dwc2: Prevent core suspend when port connection flag is 0
commit 93f672804b upstream.

In host mode port connection status flag is "0" when loading
the driver. After loading the driver system asserts suspend
which is handled by "_dwc2_hcd_suspend()" function. Before
the system suspend the port connection status is "0". As
result need to check the "port_connect_status" if it is "0",
then skipping entering to suspend.

Cc: <stable@vger.kernel.org> # 5.2
Fixes: 6f6d70597c ("usb: dwc2: bus suspend/resume for hosts with DWC2_POWER_DOWN_PARAM_NONE")
Signed-off-by: Artur Petrosyan <Arthur.Petrosyan@synopsys.com>
Link: https://lore.kernel.org/r/20210326102510.BDEDEA005D@mailhost.synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-07 14:47:44 +02:00
..
atm
c67x00 USB: c67x00: fix use after free in c67x00_giveback_urb 2020-07-22 09:33:09 +02:00
cdns3 usb: cdns3: gadget: suspicious implicit sign extension 2020-11-10 12:37:31 +01:00
chipidea usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data() 2021-01-12 20:16:18 +01:00
class USB: cdc-acm: fix use-after-free after probe failure 2021-04-07 14:47:44 +02:00
common
core USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem 2021-04-07 14:47:43 +02:00
dwc2 usb: dwc2: Prevent core suspend when port connection flag is 0 2021-04-07 14:47:44 +02:00
dwc3 usb: dwc3: qcom: Honor wakeup enabled/disabled state 2021-03-17 17:03:49 +01:00
early
gadget usb: gadget: udc: amd5536udc_pci fix null-ptr-dereference 2021-04-07 14:47:44 +02:00
host usb: xhci-mtk: fix broken streams issue on 0.96 xHCI 2021-04-07 14:47:43 +02:00
image
isp1760
misc USB: yurex: fix control-URB timeout handling 2021-01-12 20:16:20 +01:00
mon
mtu3 usb: mtu3: fix memory corruption in mtu3_debugfs_regset() 2020-12-30 11:50:58 +01:00
musb usb: musb: Fix suspend with devices connected for a64 2021-04-07 14:47:43 +02:00
phy usb: phy: twl6030-usb: Fix a resource leak in an error handling path in 'twl6030_usb_probe()' 2020-06-03 08:21:12 +02:00
renesas_usbhs usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM 2021-03-17 17:03:50 +01:00
roles
serial USB: serial: cp210x: add some more GE USB IDs 2021-03-17 17:03:51 +01:00
storage usb-storage: Add quirk to defeat Kindle's automatic unload 2021-03-24 11:26:40 +01:00
typec usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy- 2021-03-24 11:26:41 +01:00
usbip usbip: vhci_hcd fix shift out-of-bounds in vhci_hub_control() 2021-04-07 14:47:43 +02:00
Kconfig
Makefile
usb-skeleton.c