mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
PCI: mediatek-gen3: Do full device power down on removal
When power control for downstream devices was introduced in the
mediatek-gen3 PCIe controller driver, only the power to the downstream
devices was cut when the controller driver is removed. This matched
existing behavior, but in hindsight a proper power down sequence should
have been followed.
Call mtk_pcie_devices_power_down() on driver removal so that in addition
to removing power from the downstream devices, PERST# is asserted.
Fixes: 1a152e2194 ("PCI: mediatek-gen3: Integrate new pwrctrl API")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260505105918.1823170-1-wenst@chromium.org
This commit is contained in:
parent
7a0e17e7a0
commit
d39d55d741
|
|
@ -1280,7 +1280,7 @@ static void mtk_pcie_remove(struct platform_device *pdev)
|
|||
pci_remove_root_bus(host->bus);
|
||||
pci_unlock_rescan_remove();
|
||||
|
||||
pci_pwrctrl_power_off_devices(pcie->dev);
|
||||
mtk_pcie_devices_power_down(pcie);
|
||||
mtk_pcie_power_down(pcie);
|
||||
pci_pwrctrl_destroy_devices(pcie->dev);
|
||||
mtk_pcie_irq_teardown(pcie);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user