[PATCH] usb: core: hub: fix race condition about TRSMRCY of resume

Greg Kroah-Hartman gregkh at linuxfoundation.org
Tue May 11 04:27:34 PDT 2021


On Tue, May 11, 2021 at 06:15:22PM +0800, Chunfeng Yun wrote:
> 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.
> 
> Reported-by: Tianping Fang <tianping.fang at mediatek.com>
> Signed-off-by: Chunfeng Yun <chunfeng.yun at mediatek.com>
> ---
>  drivers/usb/core/hub.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Does this need to go to any older/stable kernels?  If so, how far back?

thanks,

greg k-h



More information about the Linux-mediatek mailing list