aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShunsuke Mie <[email protected]>2022-06-22 13:09:24 +0900
committerBjorn Helgaas <[email protected]>2022-07-06 15:23:31 -0500
commit1bc2b7bfba6e2f64edf5e246f3af2967261f6c3d (patch)
tree463e42f6f939e1423aebd91161c21be93b5396cc
parentf2906aa863381afb0015a9eb7fefad885d4e5a56 (diff)
PCI: endpoint: Don't stop controller when unbinding endpoint function
Unbinding an endpoint function from the endpoint controller shouldn't stop the controller. This is especially a problem for multi-function endpoints where other endpoints may still be active. Don't stop the controller when unbinding one of its endpoints. Normally the controller is stopped via configfs. Fixes: 349e7a85b25f ("PCI: endpoint: functions: Add an EP function to test PCI") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Shunsuke Mie <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]>
-rw-r--r--drivers/pci/endpoint/functions/pci-epf-test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c
index 5b833f00e980..a5ed779b0a51 100644
--- a/drivers/pci/endpoint/functions/pci-epf-test.c
+++ b/drivers/pci/endpoint/functions/pci-epf-test.c
@@ -627,7 +627,6 @@ static void pci_epf_test_unbind(struct pci_epf *epf)
cancel_delayed_work(&epf_test->cmd_handler);
pci_epf_test_clean_dma_chan(epf_test);
- pci_epc_stop(epc);
for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) {
epf_bar = &epf->bar[bar];