usb: xhci-plat: fix usb disconnect issue after s4
authorYinbo Zhu <zhuyinbo@loongson.cn>
Thu, 28 Dec 2023 07:11:13 +0000 (15:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 14:58:12 +0000 (15:58 +0100)
commit6d6887c42e946f43bed2e64571a40c8476a1e4a9
tree1f0957bbfe1aab5200226981717470850aa7d982
parent91736d0619eb4083f33ae737b9d9763fc6b196ed
usb: xhci-plat: fix usb disconnect issue after s4

The xhci retaining bogus hardware states cause usb disconnect devices
connected before hibernation(s4) and refer to the commit 'f3d478858be
("usb: ohci-platform: fix usb disconnect issue after s4")' which set
flag "hibernated" as true when resume-from-hibernation and that the
drivers will reset the hardware to get rid of any existing state and
make sure resume from hibernation re-enumerates everything for xhci.

Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Link: https://lore.kernel.org/r/20231228071113.1719-1-zhuyinbo@loongson.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c