From: Sergio Paracuellos Date: Sun, 22 Aug 2021 16:10:05 +0000 (+0200) Subject: staging: mt7621-pci: set end limit for 'ioport_resource' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=50fb34eca2944fd67493717c9fbda125336f1655;p=linux.git 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. Acked-by: Greg Kroah-Hartman Signed-off-by: Sergio Paracuellos Link: https://lore.kernel.org/r/20210822161005.22467-4-sergio.paracuellos@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index 6acfc94a16e73..86d9c3d122e2c 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -526,6 +526,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;