usb: warm-reset ports on hub resume, if requested
Greg Kroah-Hartman
maintainerPATCH 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_INACTIVElink 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
Signed-off-by Jan-Marek Glogowski <[email protected]>--- 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