Skip to content

Commit 30dc83a

Browse files
committed
Merge branch 'pci/controller/rcar'
- Rename internal #defines without "CONFIG_" prefix to avoid confusion (Lukas Bulwahn) * pci/controller/rcar: PCI: rcar: Avoid defines prefixed with CONFIG
2 parents 5c5dd88 + 727de4c commit 30dc83a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ static int rcar_pcie_config_access(struct rcar_pcie_host *host,
219219

220220
/* Enable the configuration access */
221221
if (pci_is_root_bus(bus->parent))
222-
rcar_pci_write_reg(pcie, CONFIG_SEND_ENABLE | TYPE0, PCIECCTLR);
222+
rcar_pci_write_reg(pcie, PCIECCTLR_CCIE | TYPE0, PCIECCTLR);
223223
else
224-
rcar_pci_write_reg(pcie, CONFIG_SEND_ENABLE | TYPE1, PCIECCTLR);
224+
rcar_pci_write_reg(pcie, PCIECCTLR_CCIE | TYPE1, PCIECCTLR);
225225

226226
/* Check for errors */
227227
if (rcar_pci_read_reg(pcie, PCIEERRFR) & UNSUPPORTED_REQUEST)

drivers/pci/controller/pcie-rcar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define PCIECAR 0x000010
1313
#define PCIECCTLR 0x000018
14-
#define CONFIG_SEND_ENABLE BIT(31)
14+
#define PCIECCTLR_CCIE BIT(31)
1515
#define TYPE0 (0 << 8)
1616
#define TYPE1 BIT(8)
1717
#define PCIECDR 0x000020

0 commit comments

Comments
 (0)