Skip to content
Snippets Groups Projects
Commit f858c084 authored by Ethan Zhao's avatar Ethan Zhao Committed by Sasha Levin
Browse files

PCI: Make pci_dev_is_disconnected() helper public for other drivers


[ Upstream commit 39714fd7 ]

Make pci_dev_is_disconnected() public so that it can be called from
Intel VT-d driver to quickly fix/workaround the surprise removal
unplug hang issue for those ATS capable devices on PCIe switch downstream
hotplug capable ports.

Beside pci_device_is_present() function, this one has no config space
space access, so is light enough to optimize the normal pure surprise
removal and safe removal flow.

Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Tested-by: default avatarHaorong Ye <yehaorong@bytedance.com>
Signed-off-by: default avatarEthan Zhao <haifeng.zhao@linux.intel.com>
Link: https://lore.kernel.org/r/20240301080727.3529832-2-haifeng.zhao@linux.intel.com


Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Stable-dep-of: 4fc82cd9 ("iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 722c24cd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment