Commit f0d70eec authored by leoliuoc's avatar leoliuoc
Browse files

Fix mouse enumeration issue after wakeup from s4

zhaoxin inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I62V77


CVE: NA

----------------------------------------------------------------

There is a mouse attached in the xHCI port. Then plug out this mouse and
plug to UHCI port after system go into hibernation. This mouse will
random be identified after system wakeup from hibernation.

During s4 wakeup, xHCI driver will cleanup this disconnect mouse (not
connect to xHCI port). This will delay s4 wakeup process and UHCI root hub
will goto auto suspend. Usb hub threads will be called to handle usb
controller root hub's event after S4 wakeup completed. However, this are
too many usb controllers to ensure EHCI and UHCI hub threads execute
order. Once, EHCI giveback port to UHCI before UHCI hub event check. UHCI
will try to enumerate this mouse with UHCI run bit not set. Which will
cause control transfer fail during enumeration phase.

In order to fix this issues, set UHCI root hub auto suspend delay value
larger. UHCI run bit will be set after wakeup from S4 and mouse will be
identified.

Signed-off-by: default avatarleoliuoc <leoliu-oc@zhaoxin.com>
parent ace4dc02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment