Skip to content

Commit 8eb8c27

Browse files
jamesequinlanLorenzo Pieralisi
authored andcommitted
PCI: brcmstb: Assert PERST# on BCM2711
The current PCIe driver assumes PERST# is asserted when probe() is invoked. Some older versions of the 2711/RPi bootloader left PERST# unasserted, as the Raspian OS does assert PERST# on probe(). For this reason, we assert PERST# for BCM2711 SOCs (i.e. RPi). Link: https://lore.kernel.org/r/20230623144100.34196-5-james.quinlan@broadcom.com Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
1 parent 06c2afb commit 8eb8c27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/pci/controller/pcie-brcmstb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,11 @@ static int brcm_pcie_setup(struct brcm_pcie *pcie)
874874

875875
/* Reset the bridge */
876876
pcie->bridge_sw_init_set(pcie, 1);
877+
878+
/* Ensure that PERST# is asserted; some bootloaders may deassert it. */
879+
if (pcie->type == BCM2711)
880+
pcie->perst_set(pcie, 1);
881+
877882
usleep_range(100, 200);
878883

879884
/* Take the bridge out of reset */

0 commit comments

Comments
 (0)