PCI: mvebu: Fix support for PCI_BRIDGE_CTL_BUS_RESET on emulated bridge
authorPali Rohár <pali@kernel.org>
Thu, 25 Nov 2021 12:46:02 +0000 (13:46 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 4 Jan 2022 14:59:25 +0000 (14:59 +0000)
commitd75404cc08832206f173668bd35391c581fea121
treec38911b6b993b10972ab3cdbd6fb2ca353ff6053
parent91a8d79fc797d3486ae978beebdfc55261c7d65b
PCI: mvebu: Fix support for PCI_BRIDGE_CTL_BUS_RESET on emulated bridge

Hardware supports PCIe Hot Reset via PCIE_CTRL_OFF register. Use it for
implementing PCI_BRIDGE_CTL_BUS_RESET bit of PCI_BRIDGE_CONTROL register on
emulated bridge.

With this change the function pci_reset_secondary_bus() starts working and
can reset connected PCIe card.

Link: https://lore.kernel.org/r/20211125124605.25915-13-pali@kernel.org
Fixes: 1f08673eef12 ("PCI: mvebu: Convert to PCI emulated bridge config space")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c