Commit 2070b2dd authored by Pali Rohár's avatar Pali Rohár Committed by Lorenzo Pieralisi
Browse files

PCI: aardvark: Fix checking for MEM resource type

IORESOURCE_MEM_64 is not a resource type but a type flag.

Remove incorrect check for type IORESOURCE_MEM_64.

Link: https://lore.kernel.org/r/20211125160148.26029-2-kabel@kernel.org


Fixes: 64f160e1 ("PCI: aardvark: Configure PCIe resources from 'ranges' DT property")
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
parent fdbbe242
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1553,8 +1553,7 @@ static int advk_pcie_probe(struct platform_device *pdev)
		 * only PIO for issuing configuration transfers which does
		 * not use PCIe window configuration.
		 */
		if (type != IORESOURCE_MEM && type != IORESOURCE_MEM_64 &&
		    type != IORESOURCE_IO)
		if (type != IORESOURCE_MEM && type != IORESOURCE_IO)
			continue;

		/*
@@ -1562,8 +1561,7 @@ static int advk_pcie_probe(struct platform_device *pdev)
		 * configuration is set to transparent memory access so it
		 * does not need window configuration.
		 */
		if ((type == IORESOURCE_MEM || type == IORESOURCE_MEM_64) &&
		    entry->offset == 0)
		if (type == IORESOURCE_MEM && entry->offset == 0)
			continue;

		/*