Re: [PATCH] usb: xhci-plat: fix usb disconnect issue after s4

From: Yinbo Zhu
Date: Wed Aug 02 2023 - 22:55:01 EST




在 2023/8/2 下午6:06, Greg Kroah-Hartman 写道:
On Wed, Aug 02, 2023 at 05:58:17PM +0800, Yinbo Zhu wrote:


在 2023/8/2 下午5:39, Greg Kroah-Hartman 写道:
On Wed, Aug 02, 2023 at 05:06:42PM +0800, Yinbo Zhu wrote:
The xhci retaining bogus hardware states cause usb disconnect devices
connected before hibernation(s4) and refer to the commit '547d55fa83
("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@xxxxxxxxxxx>
---
drivers/usb/host/xhci-plat.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)

What commit id does this fix?


Sorry, I misunderstood your meaning earlier. This patch is not meant to
fix the bugs in the previous commit id. Actually, it was to fix xhci
issue that refer to repair of ohci (commit id "f3d478858bec4").


Should it go to stable kernels?


Do I need to add Cc about stable kernel for the above situation?

Thanks,
Yinbo