Files
linux-nv-oot/drivers/misc/nvscic2c-pcie/epf/module.c
Deepak Badgaiyan 0b94a70702 nvscic2c-pcie: update endpoint function deinit
In Thor core_deinit event is issue from pcie_epc_stop(),
Which mean we can not call pci_epc_unmap_addr() in core_deinit
due to mutex deadlock.
Release epc->lock in core_deinit before calling epc-core API's.
Take back mutex before returning.

Jira NVIPC-3183
Bug 5046041

Change-Id: Ie24bbb9cc95e4024fd95ae099cda51ef90ddd2f8
Signed-off-by: Deepak Badgaiyan <dbadgaiyan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3282858
Reviewed-by: Anish Khurana <ankhurana@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Janardhan Reddy AnnapuReddy <jreddya@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
2025-07-24 10:19:13 +00:00

30 KiB