Skip to content

Commit 4bcab02

Browse files
committed
Revert "PCI: rockchip: limit PCIe accessors within 1MB cfg space"
This reverts commit a44c022.
1 parent 26b4355 commit 4bcab02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/host/pcie-rockchip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static int rockchip_pcie_rd_other_conf(struct rockchip_pcie *rockchip,
385385
busdev = PCIE_ECAM_ADDR(bus->number, PCI_SLOT(devfn),
386386
PCI_FUNC(devfn), where);
387387

388-
if (!IS_ALIGNED(busdev, size) || busdev >= SZ_1M) {
388+
if (!IS_ALIGNED(busdev, size)) {
389389
*val = 0;
390390
return PCIBIOS_BAD_REGISTER_NUMBER;
391391
}
@@ -411,7 +411,7 @@ static int rockchip_pcie_wr_other_conf(struct rockchip_pcie *rockchip,
411411

412412
busdev = PCIE_ECAM_ADDR(bus->number, PCI_SLOT(devfn),
413413
PCI_FUNC(devfn), where);
414-
if (!IS_ALIGNED(busdev, size) || busdev >= SZ_1M)
414+
if (!IS_ALIGNED(busdev, size))
415415
return PCIBIOS_BAD_REGISTER_NUMBER;
416416

417417
if (size == 4)

0 commit comments

Comments
 (0)