]> 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)
commitec4a65a1717827e637b847b1622bd3440ef32e80
tree3438e0b606e10275bd2c5686e30b3e6b4ddb5282
parent282825fa185c6c9a17fac171b8436ad953d66c01
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: 06eefd882b34 ("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