Files
android_kernel_xiaomi_sm8450/include/linux
Ethan Zhao f858c084eb PCI: Make pci_dev_is_disconnected() helper public for other drivers
[ Upstream commit 39714fd73c6b60a8d27bcc5b431afb0828bf4434 ]

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: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Tested-by: Haorong Ye <yehaorong@bytedance.com>
Signed-off-by: Ethan Zhao <haifeng.zhao@linux.intel.com>
Link: https://lore.kernel.org/r/20240301080727.3529832-2-haifeng.zhao@linux.intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Stable-dep-of: 4fc82cd907ac ("iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:52 -04:00
..
2024-01-25 14:37:54 -08:00
2022-08-21 15:16:16 +02:00
2024-02-23 08:41:51 +01:00
2022-10-26 13:25:35 +02:00
2024-03-26 18:21:48 -04:00
2023-12-20 15:44:30 +01:00
2023-10-25 11:54:20 +02:00
2022-10-26 13:25:42 +02:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2022-08-21 15:16:08 +02:00
2022-08-21 15:15:21 +02:00
2021-06-30 08:47:26 -04:00
2023-01-04 11:39:16 +01:00
2023-11-20 11:06:46 +01:00
2023-06-21 15:45:38 +02:00
2023-08-26 15:26:57 +02:00
2024-01-25 14:37:40 -08:00
2024-02-23 08:42:11 +01:00
2021-03-30 14:32:05 +02:00
2023-11-28 16:54:53 +00:00
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
2021-05-07 11:04:32 +02:00
2021-05-14 09:50:18 +02:00
2023-05-17 11:48:09 +02:00
2021-05-14 09:50:31 +02:00
2024-02-23 08:41:51 +01:00