pci: pcie-rcar-gen4: Shut down controller on link down and remove
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 18 Sep 2025 16:36:00 +0000 (18:36 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 17 Oct 2025 19:53:52 +0000 (21:53 +0200)
commit2b634a80b5ce92232f309fdd7d7864098ca7fb95
tree47d85564966a97d0db08fbac8077bf280c141e2e
parentbf1d8c1fec863b7da2f0d1ed4bd5526275d70dc2
pci: pcie-rcar-gen4: Shut down controller on link down and remove

In case the link is down, or the controller driver is removed before
booting the next stage, shut down the PCIe link, put both the remote
PCIe device and the controller into reset, and disable clock. This
way, the hardware is not left active when not in use.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/pci/pci-rcar-gen4.c