usb: xhci-mtk: fix fs isoc's transfer error
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 12 May 2022 06:49:30 +0000 (14:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 16:35:38 +0000 (18:35 +0200)
commitc237566b78ad8c72bc0431c5d6171db8d12e6f94
tree8ac1112ac909bb604b3d21a9ffbfaa50799ef7ae
parent5f0b5f4d50fa0faa8c76ef9d42a42e8d43f98b44
usb: xhci-mtk: fix fs isoc's transfer error

Due to the scheduler allocates the optimal bandwidth for FS ISOC endpoints,
this may be not enough actually and causes data transfer error, so come up
with an estimate that is no less than the worst case bandwidth used for
any one mframe, but may be an over-estimate.

Fixes: 451d3912586a ("usb: xhci-mtk: update fs bus bandwidth by bw_budget_table")
Cc: stable@vger.kernel.org
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20220512064931.31670-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c