diff options
author | David P <megver83@parabola.nu> | 2020-07-10 21:25:50 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-07-10 21:25:50 -0400 |
commit | d5fb62c08ec07a1a6185bb9694ef93676070e884 (patch) | |
tree | 4b80a9b91199c6a88edf3f69ba99f060d8639871 /libre/linux-libre/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch | |
parent | 9ff3734e30261e4d9542d983d7dc75c23f152a27 (diff) | |
download | abslibre-d5fb62c08ec07a1a6185bb9694ef93676070e884.tar.gz abslibre-d5fb62c08ec07a1a6185bb9694ef93676070e884.tar.bz2 abslibre-d5fb62c08ec07a1a6185bb9694ef93676070e884.zip |
updpkg: libre/linux-libre 5.7.8-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/linux-libre/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch')
-rw-r--r-- | libre/linux-libre/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/linux-libre/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch b/libre/linux-libre/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch new file mode 100644 index 000000000..2767f6096 --- /dev/null +++ b/libre/linux-libre/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch @@ -0,0 +1,38 @@ +From efc6c7bfa6d28f7720322f1976aa2799a88906dd Mon Sep 17 00:00:00 2001 +From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> +Date: Wed, 15 Apr 2020 17:38:32 -0700 +Subject: [PATCH 2/4] PCI/EDR: Log only ACPI_NOTIFY_DISCONNECT_RECOVER events + +Previously we logged *all* ACPI SYSTEM-level events, which may include lots +of non-EDR events. Move the message so we only log those related to EDR. + +Link: https://lore.kernel.org/r/01afb4e01efbe455de0c445bef6cf3ffc59340d2.1586996350.git.sathyanarayanan.kuppuswamy@linux.intel.com +[bhelgaas: drop the pci_dbg() of all events since ACPI can log those +already] +Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> +Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> +--- + drivers/pci/pcie/edr.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/pci/pcie/edr.c b/drivers/pci/pcie/edr.c +index 594622a6cb16..a6b9b479b97a 100644 +--- a/drivers/pci/pcie/edr.c ++++ b/drivers/pci/pcie/edr.c +@@ -148,11 +148,11 @@ static void edr_handle_event(acpi_handle handle, u32 event, void *data) + pci_ers_result_t estate = PCI_ERS_RESULT_DISCONNECT; + u16 status; + +- pci_info(pdev, "ACPI event %#x received\n", event); +- + if (event != ACPI_NOTIFY_DISCONNECT_RECOVER) + return; + ++ pci_info(pdev, "EDR event received\n"); ++ + /* Locate the port which issued EDR event */ + edev = acpi_dpc_port_get(pdev); + if (!edev) { +-- +2.27.0 + |