OSDN Git Service

usb: xhci-mtk: remove bandwidth budget table
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 12 May 2022 06:49:31 +0000 (14:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 16:35:38 +0000 (18:35 +0200)
commit1645eee0d7f623660e6ce0f1aef4591788a0c9da
treeae32720270d2181ba3503aca5faac4961ab8135d
parentc237566b78ad8c72bc0431c5d6171db8d12e6f94
usb: xhci-mtk: remove bandwidth budget table

The bandwidth budget table is introduced to trace ideal bandwidth used
by each INT/ISOC endpoint, but in fact the endpoint may consume more
bandwidth and cause data transfer error, so it's better to leave some
margin. Obviously it's difficult to find the best margin for all cases,
instead take use of the worst-case scenario.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20220512064931.31670-2-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c
drivers/usb/host/xhci-mtk.h