USB fixes for 5.8-rc7
Here are 3 small USB XHCI driver fixes for 5.8-rc7. They all resolve some minor issues that have been reported on some different platforms. All of these have been in linux-next with no reported issues. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -----BEGIN PGP SIGNATURE----- iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCXx1kQA8cZ3JlZ0Brcm9h aC5jb20ACgkQMUfUDdst+ymIYgCbBd+vEFPFXBw1IRlUw89KHS5mllgAn0cexL8r 1t/EfEJ6DYicFyK4SKGC =Lky0 -----END PGP SIGNATURE----- Merge tag 'usb-5.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb into master Pull USB fixes from Greg KH: "Three small USB XHCI driver fixes for 5.8-rc7. They all resolve some minor issues that have been reported on some different platforms. All of these have been in linux-next with no reported issues" * tag 'usb-5.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: usb: tegra: Fix allocation for the FPCI context usb: xhci: Fix ASM2142/ASM3142 DMA addressing usb: xhci-mtk: fix the failure of bandwidth allocation
This commit is contained in:
Коммит
17f50e28a8
|
@ -557,6 +557,10 @@ static bool need_bw_sch(struct usb_host_endpoint *ep,
|
|||
if (is_fs_or_ls(speed) && !has_tt)
|
||||
return false;
|
||||
|
||||
/* skip endpoint with zero maxpkt */
|
||||
if (usb_endpoint_maxp(&ep->desc) == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -265,6 +265,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
|
|||
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
|
||||
pdev->device == 0x1142)
|
||||
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
|
||||
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
|
||||
pdev->device == 0x2142)
|
||||
xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
|
||||
|
||||
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
|
||||
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)
|
||||
|
|
|
@ -856,7 +856,7 @@ static int tegra_xusb_init_context(struct tegra_xusb *tegra)
|
|||
if (!tegra->context.ipfs)
|
||||
return -ENOMEM;
|
||||
|
||||
tegra->context.fpci = devm_kcalloc(tegra->dev, soc->ipfs.num_offsets,
|
||||
tegra->context.fpci = devm_kcalloc(tegra->dev, soc->fpci.num_offsets,
|
||||
sizeof(u32), GFP_KERNEL);
|
||||
if (!tegra->context.fpci)
|
||||
return -ENOMEM;
|
||||
|
|
Загрузка…
Ссылка в новой задаче