Skip to content

Commit c4c10c0

Browse files
kishonLorenzo Pieralisi
authored andcommitted
PCI: cadence: Allow pci_host_bridge to have custom pci_ops
Certain platforms like TI's J721E allows only 32-bit configuration space access. In such cases pci_generic_config_read and pci_generic_config_write cannot be used. Add support in Cadence core to let pci_host_bridge have custom pci_ops. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
1 parent 40d957e commit c4c10c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pci/controller/cadence/pcie-cadence-host.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ int cdns_pcie_host_setup(struct cdns_pcie_rc *rc)
506506
list_splice_init(&resources, &bridge->windows);
507507
bridge->dev.parent = dev;
508508
bridge->busnr = pcie->bus;
509-
bridge->ops = &cdns_pcie_host_ops;
509+
if (!bridge->ops)
510+
bridge->ops = &cdns_pcie_host_ops;
510511
bridge->map_irq = of_irq_parse_and_map_pci;
511512
bridge->swizzle_irq = pci_common_swizzle;
512513

0 commit comments

Comments
 (0)