]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite205e93c7492bf489170253eee71fd13e450a6f6
tree8ac1112ac909bb604b3d21a9ffbfaa50799ef7ae
parent4013808fc2d89ef62748f91e0ab1aff35343f430
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: 2160a2d9e4ff ("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