]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: endpoint: Don't stop controller when unbinding endpoint function
authorShunsuke Mie <mie@igel.co.jp>
Wed, 22 Jun 2022 04:09:24 +0000 (13:09 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Jul 2022 20:23:31 +0000 (15:23 -0500)
commitee4ee678e336c276a3c1fa1c9fc124418275b9cd
tree463e42f6f939e1423aebd91161c21be93b5396cc
parentcf1710d1388cf5bd81996b258399c4907d27006e
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: a5c11ce59e0d ("PCI: endpoint: functions: Add an EP function to test PCI")
Link: https://lore.kernel.org/r/20220622040924.113279-1-mie@igel.co.jp
Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/endpoint/functions/pci-epf-test.c