Skip to contentSkip to conversation

usb: warm-reset ports on hub resume, if requested

PATCH New Greg Kroah-Hartman 1 participant 1 message Jan 16, 2019 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH v2 1/1 usb: warm-reset ports on hub resume, if requested

Quoted 9 lines · Jan-Marek Glogowski

On plug-in of my USB-C device, its USB_SS_PORT_LS_SS_INACTIVE link state bit is set. Greping all the kernel for this bit shows that the port status requests a warm-reset this way.

This just happens, if its the only device on that hub and the hub resumes, so we don't call port_event, which would otherwise warm-reset ports. The device works ok without this patch, if there is already any other device connected to the hub.

Quoted 4 lines
---
 drivers/usb/core/hub.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

What changed from v1? Always put that below the --- line, as the documentation asks you to do.

v3 please?

thanks,

greg k-h