mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
9ce7aa325e
* Refreshed patches. * Patches made redundant by changes upstream: - target/linux/ramips/patches-4.14/0036-mtd-fix-cfi-cmdset-0002-erase-status-check.patch * Patches accepted upstream: - target/linux/apm821xx/patches-4.14/020-0001-crypto-crypto4xx-remove-bad-list_del.patch - target/linux/apm821xx/patches-4.14/020-0011-crypto-crypto4xx-fix-crypto4xx_build_pdr-crypto4xx_b.patch - target/linux/brcm63xx/patches-4.14/001-4.15-08-bcm63xx_enet-correct-clock-usage.patch - target/linux/brcm63xx/patches-4.14/001-4.15-09-bcm63xx_enet-do-not-write-to-random-DMA-channel-on-B.patch - target/linux/generic/backport-4.14/080-net-convert-sock.sk_wmem_alloc-from-atomic_t-to-refc.patch - target/linux/generic/pending-4.14/900-gen_stats-fix-netlink-stats-padding.patch The ext4 regression introduced in 4.14.55 has been fixed by 4.14.60 (commit f547aa20b4f61662ad3e1a2040bb3cc5778f19b0). Fixes the following CVEs: - CVE-2018-10876 - CVE-2018-10877 - CVE-2018-10879 - CVE-2018-10880 - CVE-2018-10881 - CVE-2018-10882 - CVE-2018-10883 Thanks to Stijn Tintel for the CVE list :-). Compile-tested on: ramips/mt7621, x86/64 Run-tested on: ramips/mt7621, x86/64 Signed-off-by: Stijn Segers <foss@volatilesystems.org>
55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From a0dc613140bab907a3d5787a7ae7b0638bf674d0 Mon Sep 17 00:00:00 2001
|
|
From: Christian Lamparter <chunkeey@gmail.com>
|
|
Date: Thu, 23 Jun 2016 20:28:20 +0200
|
|
Subject: [PATCH] usb: xhci: force MSI for uPD720201 and
|
|
uPD720202
|
|
|
|
The APM82181 does not support MSI-X. When probed, it will
|
|
produce a noisy warning.
|
|
|
|
---
|
|
drivers/usb/host/pci-quirks.c | 362 ++++++++++++++++++++++++++++++++++++++++++
|
|
1 file changed, 362 insertions(+)
|
|
|
|
--- a/drivers/usb/host/xhci-pci.c
|
|
+++ b/drivers/usb/host/xhci-pci.c
|
|
@@ -213,7 +213,7 @@ static void xhci_pci_quirks(struct devic
|
|
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
|
|
if (pdev->vendor == PCI_VENDOR_ID_RENESAS &&
|
|
pdev->device == 0x0015)
|
|
- xhci->quirks |= XHCI_RESET_ON_RESUME;
|
|
+ xhci->quirks |= XHCI_RESET_ON_RESUME | XHCI_FORCE_MSI;
|
|
if (pdev->vendor == PCI_VENDOR_ID_VIA)
|
|
xhci->quirks |= XHCI_RESET_ON_RESUME;
|
|
|
|
--- a/drivers/usb/host/xhci.c
|
|
+++ b/drivers/usb/host/xhci.c
|
|
@@ -357,10 +357,14 @@ static int xhci_try_enable_msi(struct us
|
|
free_irq(hcd->irq, hcd);
|
|
hcd->irq = 0;
|
|
|
|
- ret = xhci_setup_msix(xhci);
|
|
- if (ret)
|
|
- /* fall back to msi*/
|
|
+ if (xhci->quirks & XHCI_FORCE_MSI) {
|
|
ret = xhci_setup_msi(xhci);
|
|
+ } else {
|
|
+ ret = xhci_setup_msix(xhci);
|
|
+ if (ret)
|
|
+ /* fall back to msi*/
|
|
+ ret = xhci_setup_msi(xhci);
|
|
+ }
|
|
|
|
if (!ret) {
|
|
hcd->msi_enabled = 1;
|
|
--- a/drivers/usb/host/xhci.h
|
|
+++ b/drivers/usb/host/xhci.h
|
|
@@ -1854,6 +1854,7 @@ struct xhci_hcd {
|
|
/* support xHCI 0.96 spec USB2 software LPM */
|
|
unsigned sw_lpm_support:1;
|
|
/* support xHCI 1.0 spec USB2 hardware LPM */
|
|
+#define XHCI_FORCE_MSI (1 << 24)
|
|
unsigned hw_lpm_support:1;
|
|
/* cached usb2 extened protocol capabilites */
|
|
u32 *ext_caps;
|