]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 17:38:49 +0000 (19:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 17:38:49 +0000 (19:38 +0200)
added patches:
pci-export-pci_pio_to_address-for-module-use.patch

queue-5.10/pci-export-pci_pio_to_address-for-module-use.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/pci-export-pci_pio_to_address-for-module-use.patch b/queue-5.10/pci-export-pci_pio_to_address-for-module-use.patch
new file mode 100644 (file)
index 0000000..57b2059
--- /dev/null
@@ -0,0 +1,31 @@
+From 9cc742078c9a90cdd4cf131e9f760e6965df9048 Mon Sep 17 00:00:00 2001
+From: Jianjun Wang <jianjun.wang@mediatek.com>
+Date: Tue, 20 Apr 2021 14:17:18 +0800
+Subject: PCI: Export pci_pio_to_address() for module use
+
+From: Jianjun Wang <jianjun.wang@mediatek.com>
+
+commit 9cc742078c9a90cdd4cf131e9f760e6965df9048 upstream.
+
+This interface will be used by PCI host drivers for PIO translation,
+export it to support compiling those drivers as kernel modules.
+
+Link: https://lore.kernel.org/r/20210420061723.989-3-jianjun.wang@mediatek.com
+Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
+Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
+Acked-by: Bjorn Helgaas <bhelgaas@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/pci/pci.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/pci/pci.c
++++ b/drivers/pci/pci.c
+@@ -4043,6 +4043,7 @@ phys_addr_t pci_pio_to_address(unsigned
+       return address;
+ }
++EXPORT_SYMBOL_GPL(pci_pio_to_address);
+ unsigned long __weak pci_address_to_pio(phys_addr_t address)
+ {
index eced79371b1136654438dac64f10295ee20aac4f..4d73438c1e5520b505c2f4a7c557c944a93a46c4 100644 (file)
@@ -49,5 +49,6 @@ pci-restrict-asmedia-asm1062-sata-max-payload-size-supported.patch
 pci-return-0-data-on-pciconfig_read-cap_sys_admin-failure.patch
 pci-xilinx-nwl-enable-the-clock-through-ccf.patch
 pci-aardvark-configure-pcie-resources-from-ranges-dt-property.patch
+pci-export-pci_pio_to_address-for-module-use.patch
 pci-aardvark-fix-checking-for-pio-status.patch
 pci-aardvark-fix-masking-and-unmasking-legacy-intx-interrupts.patch