]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 1 Feb 2021 05:57:44 +0000 (13:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Feb 2021 13:10:36 +0000 (14:10 +0100)
commit9f72be7293abeb5fc220d65d67d4e1b457035052
tree3438e0b606e10275bd2c5686e30b3e6b4ddb5282
parentd009f6703b6f4452524f80c09594501dc90ddd8c
usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints

For those unchecked endpoints, we don't allocate bandwidth for
them, so no need free the bandwidth, otherwise will decrease
the allocated bandwidth.
Meanwhile use xhci_dbg() instead of dev_dbg() to print logs and
rename bw_ep_list_new as bw_ep_chk_list.

Fixes: f96aae3fedf9 ("usb: xhci-mtk: fix unreleased bandwidth data")
Cc: stable <stable@vger.kernel.org>
Reviewed-and-tested-by: Ikjoon Jang <ikjn@chromium.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1612159064-28413-1-git-send-email-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