Skip to content

Commit 9e14192

Browse files
Thippeswamy Havaligekwilczynski
authored andcommitted
PCI: xilinx-cpm: Add cpm_csr register mapping for CPM5_HOST1 variant
Update the CPM5 check to include CPM5_HOST1 variant. Previously, only CPM5 was considered when mapping the "cpm_csr" register. With this change, CPM5_HOST1 is also supported, ensuring proper resource mapping for this variant. Signed-off-by: Thippeswamy Havalige <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ad3b717 commit 9e14192

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pci/controller/pcie-xilinx-cpm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ static int xilinx_cpm_pcie_parse_dt(struct xilinx_cpm_pcie *port,
542542
if (IS_ERR(port->cfg))
543543
return PTR_ERR(port->cfg);
544544

545-
if (port->variant->version == CPM5) {
545+
if (port->variant->version == CPM5 ||
546+
port->variant->version == CPM5_HOST1) {
546547
port->reg_base = devm_platform_ioremap_resource_byname(pdev,
547548
"cpm_csr");
548549
if (IS_ERR(port->reg_base))

0 commit comments

Comments
 (0)