]> git.itanic.dy.fi Git - linux-stable/commit
usb: hub: delay hub autosuspend if USB3 port is still link training
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 28 Nov 2018 13:55:21 +0000 (15:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:47:05 +0000 (19:47 +0100)
commit263b0f92be968a0aee9ebfc1f7479dd7be7346a9
tree87cebd39092614a590e367cd7e2c6de8d3dcdd64
parent272e858c22933c7433200d36824973e2bc47b4fc
usb: hub: delay hub autosuspend if USB3 port is still link training

[ Upstream commit e86108940e541febf35813402ff29fa6f4a9ac0b ]

When initializing a hub we want to give a USB3 port in link training
the same debounce delay time before autosuspening the hub as already
trained, connected enabled ports.

USB3 ports won't reach the enabled state with "current connect status" and
"connect status change" bits set until the USB3 link training finishes.

Catching the port in link training (polling) and adding the debounce delay
prevents unnecessary failed attempts to autosuspend the hub.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/core/hub.c