All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: brcmstb: Restore initial fundamental reset
@ 2020-11-12 13:14 Phil Elwell
  2020-11-12 14:15 ` Nicolas Saenz Julienne
  2020-11-12 15:44 ` Florian Fainelli
  0 siblings, 2 replies; 9+ messages in thread
From: Phil Elwell @ 2020-11-12 13:14 UTC (permalink / raw)
  To: Nicolas Saenz Julienne, Rob Herring, Florian Fainelli,
	bcm-kernel-feedback-list, linux-rpi-kernel, linux-pci
  Cc: Phil Elwell

Commit 04356ac30771 ("PCI: brcmstb: Add bcm7278 PERST# support")
replaced a single reset function with a pointer to one of two
implementations, but also removed the call asserting the reset
at the start of brcm_pcie_setup. Doing so breaks Raspberry Pis with
VL805 XHCI controllers lacking dedicated SPI EEPROMs, which have been
used for USB booting but then need to be reset so that the kernel
can reconfigure them. The lack of a reset causes the firmware's loading
of the EEPROM image to RAM to fail, breaking USB for the kernel.

Fixes: commit 04356ac30771 ("PCI: brcmstb: Add bcm7278 PERST# support")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
 drivers/pci/controller/pcie-brcmstb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c
index bea86899bd5d..a90d6f69c5a1 100644
--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -869,6 +869,8 @@ static int brcm_pcie_setup(struct brcm_pcie *pcie)
 
 	/* Reset the bridge */
 	pcie->bridge_sw_init_set(pcie, 1);
+	pcie->perst_set(pcie, 1);
+
 	usleep_range(100, 200);
 
 	/* Take the bridge out of reset */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-12 17:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-12 13:14 [PATCH] PCI: brcmstb: Restore initial fundamental reset Phil Elwell
2020-11-12 14:15 ` Nicolas Saenz Julienne
2020-11-12 15:44 ` Florian Fainelli
2020-11-12 16:28   ` Jim Quinlan
2020-11-12 16:42     ` Phil Elwell
2020-11-12 16:47       ` Lukas Wunner
2020-11-12 17:13         ` Phil Elwell
2020-11-12 17:28       ` Jim Quinlan
2020-11-12 17:32     ` Nicolas Saenz Julienne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.