Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
-[Backport just for the new api which other patches need - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- drivers/pci/pci.c | 38 ++++++++++++++++++++++++++++++++++++++
- include/linux/pci.h | 2 ++
- 2 files changed, 40 insertions(+)
+ drivers/pci/host/pci-host-common.c | 2 -
+ drivers/pci/pci.c | 38 +++++++++++++++++++++++++++++++++++++
+ include/linux/pci.h | 2 +
+ 3 files changed, 41 insertions(+), 1 deletion(-)
+--- a/drivers/pci/host/pci-host-common.c
++++ b/drivers/pci/host/pci-host-common.c
+@@ -45,7 +45,7 @@ static int gen_pci_parse_request_of_pci_
+
+ switch (resource_type(res)) {
+ case IORESOURCE_IO:
+- err = pci_remap_iospace(res, iobase);
++ err = devm_pci_remap_iospace(dev, res, iobase);
+ if (err) {
+ dev_warn(dev, "error %d: failed to map resource %pR\n",
+ err, res);
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -3446,6 +3446,44 @@ void pci_unmap_iospace(struct resource *
octeon_mgmt-fix-mix-registers-configuration-on-mtu-setup.patch
net-usb-rtl8150-demote-allmulti-message-to-dev_dbg.patch
kvmclock-fix-tsc-calibration-for-nested-guests.patch
+pci-of-fix-i-o-space-page-leak.patch
pci-versatile-fix-i-o-space-page-leak.patch
net-qca_spi-avoid-packet-drop-during-initial-sync.patch
net-qca_spi-make-sure-the-qca7000-reset-is-triggered.patch
packet-refine-ring-v3-block-size-test-to-hold-one-frame.patch
net-smc-no-shutdown-in-state-smc_listen.patch
parisc-remove-unnecessary-barriers-from-spinlock.h.patch
-pci-of-fix-i-o-space-page-leak.patch
pci-hotplug-don-t-leak-pci_slot-on-registration-failure.patch
pci-skip-mps-logic-for-virtual-functions-vfs.patch
pci-pciehp-fix-use-after-free-on-unplug.patch
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
-[Backport just for the new api which other patches need - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- drivers/pci/pci.c | 38 ++++++++++++++++++++++++++++++++++++++
- include/linux/pci.h | 2 ++
- 2 files changed, 40 insertions(+)
+ drivers/pci/host/pci-host-common.c | 2 -
+ drivers/pci/pci.c | 38 +++++++++++++++++++++++++++++++++++++
+ include/linux/pci.h | 2 +
+ 3 files changed, 41 insertions(+), 1 deletion(-)
+--- a/drivers/pci/host/pci-host-common.c
++++ b/drivers/pci/host/pci-host-common.c
+@@ -45,7 +45,7 @@ static int gen_pci_parse_request_of_pci_
+
+ switch (resource_type(res)) {
+ case IORESOURCE_IO:
+- err = pci_remap_iospace(res, iobase);
++ err = devm_pci_remap_iospace(dev, res, iobase);
+ if (err) {
+ dev_warn(dev, "error %d: failed to map resource %pR\n",
+ err, res);
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
-@@ -3436,6 +3436,44 @@ char * __weak __init pcibios_setup(char
- return str;
+@@ -3575,6 +3575,44 @@ int pci_try_set_mwi(struct pci_dev *dev)
}
+ EXPORT_SYMBOL(pci_try_set_mwi);
+static void devm_pci_unmap_iospace(struct device *dev, void *ptr)
+{
+EXPORT_SYMBOL(devm_pci_remap_iospace);
+
/**
- * pcibios_set_master - enable PCI bus-mastering for device dev
- * @dev: the PCI device to enable
+ * pci_clear_mwi - disables Memory-Write-Invalidate for device dev
+ * @dev: the PCI device to disable
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1190,6 +1190,8 @@ int pci_register_io_range(phys_addr_t ad
drm-nouveau-gem-off-by-one-bugs-in-nouveau_gem_pushbuf_reloc_apply.patch
net-ethernet-freescale-fman-fix-cross-build-error.patch
net-usb-rtl8150-demote-allmulti-message-to-dev_dbg.patch
+pci-of-fix-i-o-space-page-leak.patch
pci-versatile-fix-i-o-space-page-leak.patch
net-qca_spi-avoid-packet-drop-during-initial-sync.patch
net-qca_spi-make-sure-the-qca7000-reset-is-triggered.patch
netfilter-conntrack-dccp-treat-sync-syncack-as-invalid-if-no-prior-state.patch
packet-refine-ring-v3-block-size-test-to-hold-one-frame.patch
parisc-remove-unnecessary-barriers-from-spinlock.h.patch
-pci-of-fix-i-o-space-page-leak.patch
pci-hotplug-don-t-leak-pci_slot-on-registration-failure.patch
pci-skip-mps-logic-for-virtual-functions-vfs.patch
pci-pciehp-fix-use-after-free-on-unplug.patch