usb: xhci-mtk: fix wrong remainder of bandwidth budget
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 31 Mar 2021 08:25:41 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 13:56:33 +0000 (15:56 +0200)
commitd8fca036ef6d5c7e93157edeab614c8cd2758e90
treefa4f096e18395988a71e1e8e58f04f06fb17f5f9
parent2e3d055bf27d70204cae349335a62a4f9b7c165a
usb: xhci-mtk: fix wrong remainder of bandwidth budget

The remainder of the last bandwidth bugdget is wrong,
it's the value alloacted in last bugdget, not unused.

Reported-by: Yaqii Wu <Yaqii.Wu@mediatek.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1617179142-2681-1-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c