]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: xhci-mtk: fix the failure of bandwidth allocation
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 10 Jul 2020 05:57:52 +0000 (13:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:55 +0000 (10:19 +0200)
commit89cbdfbcce70d2f292a96f0d093d27ba1206a301
treef242faa57b00d3b2a8c350a8e60e594a1e660571
parent98e96c7c749f48b88324049d16f926604240b867
usb: xhci-mtk: fix the failure of bandwidth allocation

commit 5ce1a24dd98c00a57a8fa13660648abf7e08e3ef upstream.

The wMaxPacketSize field of endpoint descriptor may be zero
as default value in alternate interface, and they are not
actually selected when start stream, so skip them when try to
allocate bandwidth.

Cc: stable <stable@vger.kernel.org>
Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller")
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1594360672-2076-1-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c