[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210807072409.9018-4-sergio.paracuellos@gmail.com>
Date: Sat, 7 Aug 2021 09:24:09 +0200
From: Sergio Paracuellos <sergio.paracuellos@...il.com>
To: tsbogend@...ha.franken.de
Cc: bhelgaas@...gle.com, matthias.bgg@...il.com,
gregkh@...uxfoundation.org, linux-mips@...r.kernel.org,
linux-pci@...r.kernel.org, linux-staging@...ts.linux.dev,
neil@...wn.name, linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] staging: mt7621-pci: set end limit for 'ioport_resource'
We have increase IO_SPACE_LIMIT for ralink platform to get PCI IO resources
properly handled using PCI core APIs. To align those changes with driver
code we have to set 'ioport_resource' end limit to IO_SPACE_LIMIT to avoid
errors.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@...il.com>
---
drivers/staging/mt7621-pci/pci-mt7621.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index 691030e1a5ed..6301397c3987 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -522,6 +522,8 @@ static int mt7621_pci_probe(struct platform_device *pdev)
if (!dev->of_node)
return -ENODEV;
+ ioport_resource.end = IO_SPACE_LIMIT;
+
bridge = devm_pci_alloc_host_bridge(dev, sizeof(*pcie));
if (!bridge)
return -ENOMEM;
--
2.25.1
Powered by blists - more mailing lists