Skip to content

Commit 187b811

Browse files
committed
Merge branch 'pci/controller/rcar-gen4'
- Make the read-only const array 'check_addr' static (Colin Ian King) - Add R-Car V4M (R8A779H0) PCIe host and endpoint to DT binding (Yoshihiro Shimoda) * pci/controller/rcar-gen4: dt-bindings: PCI: rcar-gen4-pci-ep: Add R-Car V4M compatible dt-bindings: PCI: rcar-gen4-pci-host: Add R-Car V4M compatible PCI: rcar-gen4: Make read-only const array check_addr static
2 parents 45e981b + 05a0163 commit 187b811

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Documentation/devicetree/bindings/pci/rcar-gen4-pci-ep.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ properties:
1919
- enum:
2020
- renesas,r8a779f0-pcie-ep # R-Car S4-8
2121
- renesas,r8a779g0-pcie-ep # R-Car V4H
22+
- renesas,r8a779h0-pcie-ep # R-Car V4M
2223
- const: renesas,rcar-gen4-pcie-ep # R-Car Gen4
2324

2425
reg:

Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ properties:
1919
- enum:
2020
- renesas,r8a779f0-pcie # R-Car S4-8
2121
- renesas,r8a779g0-pcie # R-Car V4H
22+
- renesas,r8a779h0-pcie # R-Car V4M
2223
- const: renesas,rcar-gen4-pcie # R-Car Gen4
2324

2425
reg:

drivers/pci/controller/dwc/pcie-rcar-gen4.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,12 @@ static int rcar_gen4_pcie_reg_test_bit(struct rcar_gen4_pcie *rcar,
606606
static int rcar_gen4_pcie_download_phy_firmware(struct rcar_gen4_pcie *rcar)
607607
{
608608
/* The check_addr values are magical numbers in the datasheet */
609-
const u32 check_addr[] = { 0x00101018, 0x00101118, 0x00101021, 0x00101121};
609+
static const u32 check_addr[] = {
610+
0x00101018,
611+
0x00101118,
612+
0x00101021,
613+
0x00101121,
614+
};
610615
struct dw_pcie *dw = &rcar->dw;
611616
const struct firmware *fw;
612617
unsigned int i, timeout;

0 commit comments

Comments
 (0)