Skip to content

Commit 2070b2d

Browse files
paliLorenzo Pieralisi
authored andcommitted
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: 64f160e ("PCI: aardvark: Configure PCIe resources from 'ranges' DT property") Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
1 parent fdbbe24 commit 2070b2d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/pci/controller/pci-aardvark.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,17 +1553,15 @@ static int advk_pcie_probe(struct platform_device *pdev)
15531553
* only PIO for issuing configuration transfers which does
15541554
* not use PCIe window configuration.
15551555
*/
1556-
if (type != IORESOURCE_MEM && type != IORESOURCE_MEM_64 &&
1557-
type != IORESOURCE_IO)
1556+
if (type != IORESOURCE_MEM && type != IORESOURCE_IO)
15581557
continue;
15591558

15601559
/*
15611560
* Skip transparent memory resources. Default outbound access
15621561
* configuration is set to transparent memory access so it
15631562
* does not need window configuration.
15641563
*/
1565-
if ((type == IORESOURCE_MEM || type == IORESOURCE_MEM_64) &&
1566-
entry->offset == 0)
1564+
if (type == IORESOURCE_MEM && entry->offset == 0)
15671565
continue;
15681566

15691567
/*

0 commit comments

Comments
 (0)