Skip to content

Commit 7e6689b

Browse files
damien-lemoalLorenzo Pieralisi
authored andcommitted
PCI: rockchip: Set address alignment for endpoint mode
The address translation unit of the rockchip EP controller does not use the lower 8 bits of a PCIe-space address to map local memory. Thus we must set the align feature field to 256 to let the user know about this constraint. Link: https://lore.kernel.org/r/[email protected] Fixes: cf590b0 ("PCI: rockchip: Add EP driver for Rockchip PCIe controller") Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Rick Wertenbroek <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Cc: [email protected]
1 parent a52587e commit 7e6689b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/pcie-rockchip-ep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ static const struct pci_epc_features rockchip_pcie_epc_features = {
442442
.linkup_notifier = false,
443443
.msi_capable = true,
444444
.msix_capable = false,
445+
.align = 256,
445446
};
446447

447448
static const struct pci_epc_features*

0 commit comments

Comments
 (0)