1 From d9317f90391167ebc275696d9df3c21ce754d609 Mon Sep 17 00:00:00 2001
2 From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
3 Date: Thu, 7 May 2020 19:20:20 +0200
4 Subject: [PATCH] PCI: brcmstb: Assert fundamental reset on
7 commit 22e21e51ce755399fd42055a3f668ee4af370881 upstream.
9 While preparing the driver for upstream this detail was missed.
11 If not asserted during the initialization process, devices connected on
12 the bus will not be made aware of the internal reset happening. This,
13 potentially resulting in unexpected behavior.
15 Link: https://lore.kernel.org/r/20200507172020.18000-1-nsaenzjulienne@suse.de
16 Fixes: c0452137034b ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
17 Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
18 Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
19 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
21 drivers/pci/controller/pcie-brcmstb.c | 1 +
22 1 file changed, 1 insertion(+)
24 --- a/drivers/pci/controller/pcie-brcmstb.c
25 +++ b/drivers/pci/controller/pcie-brcmstb.c
26 @@ -697,6 +697,7 @@ static int brcm_pcie_setup(struct brcm_p
28 /* Reset the bridge */
29 brcm_pcie_bridge_sw_init_set(pcie, 1);
30 + brcm_pcie_perst_set(pcie, 1);
32 usleep_range(100, 200);