PCI: rockship-ep: Implement the pci_epc_ops::stop_link() operation
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 17 Oct 2024 01:58:46 +0000 (10:58 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 25 Nov 2024 19:18:36 +0000 (13:18 -0600)
commit00080d0887df8c197c5b89e38215c14980eae544
tree2e73c74abb68b6e6f0788ba93f2b02d52dd8e60d
parent091022f5f94513e5f11aa9e2f1cd9fdb4d00f83c
PCI: rockship-ep: Implement the pci_epc_ops::stop_link() operation

Define the EPC operation ->stop() for the Rockchip endpoint driver with
the function rockchip_pcie_ep_stop(). This function disables link
training and the controller configuration, as the reverse to what
the start operation defined with rockchip_pcie_ep_start() does.

Link: https://lore.kernel.org/r/20241017015849.190271-12-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/pcie-rockchip-ep.c
drivers/pci/controller/pcie-rockchip.h