]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: core: hub: fix race condition about TRSMRCY of resume
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 12 May 2021 02:07:38 +0000 (10:07 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:32 +0000 (11:07 +0200)
commit592c2a1d5bcea7fe795e4da28198ff7f98d58bb7
tree0aee9a1e85b7d215d06caa77be5733b999f2ac6f
parentff8097e9172d68b8e4bc6fbaf70dcd567da57292
usb: core: hub: fix race condition about TRSMRCY of resume

BugLink: https://bugs.launchpad.net/bugs/1931292
commit 975f94c7d6c306b833628baa9aec3f79db1eb3a1 upstream.

This may happen if the port becomes resume status exactly
when usb_port_resume() gets port status, it still need provide
a TRSMCRY time before access the device.

CC: <stable@vger.kernel.org>
Reported-by: Tianping Fang <tianping.fang@mediatek.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20210512020738.52961-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/usb/core/hub.c