PCI: endpoint: Don't stop controller when unbinding endpoint function
stable inclusion from stable-v5.10.137 commit ab3b82435f14518522544b24675e180d898d1d82 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ab3b82435f14518522544b24675e180d898d1d82 -------------------------------- [ Upstream commit 1bc2b7bf ] 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: 349e7a85 ("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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com>
Loading
Please sign in to comment