diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2017-10-13 16:26:34 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-23 11:29:40 +0200 |
commit | 8465d3e4e7cf8ae9dfd8e206e8077c24d6c0cf4c (patch) | |
tree | f97bf0e9961c0daa0984b543d2943f52c06109b3 /drivers/usb/host/xhci-mtk-sch.c | |
parent | da087419c05c0e2124dcdd6eda29e4ee64b78c9d (diff) | |
download | linux-8465d3e4e7cf8ae9dfd8e206e8077c24d6c0cf4c.tar.gz linux-8465d3e4e7cf8ae9dfd8e206e8077c24d6c0cf4c.tar.bz2 linux-8465d3e4e7cf8ae9dfd8e206e8077c24d6c0cf4c.zip |
usb: xhci-mtk: use ports count from xhci in xhci_mtk_sch_init()
Make use of ports count from xhci but not from ippc in
xhci_mtk_sch_init()
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-mtk-sch.c')
-rw-r--r-- | drivers/usb/host/xhci-mtk-sch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-mtk-sch.c b/drivers/usb/host/xhci-mtk-sch.c index 6e7ddf6cafae..bfc51bc902b8 100644 --- a/drivers/usb/host/xhci-mtk-sch.c +++ b/drivers/usb/host/xhci-mtk-sch.c @@ -287,12 +287,13 @@ static bool need_bw_sch(struct usb_host_endpoint *ep, int xhci_mtk_sch_init(struct xhci_hcd_mtk *mtk) { + struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); struct mu3h_sch_bw_info *sch_array; int num_usb_bus; int i; /* ss IN and OUT are separated */ - num_usb_bus = mtk->num_u3_ports * 2 + mtk->num_u2_ports; + num_usb_bus = xhci->num_usb3_ports * 2 + xhci->num_usb2_ports; sch_array = kcalloc(num_usb_bus, sizeof(*sch_array), GFP_KERNEL); if (sch_array == NULL) |