linux/drivers/pci/endpoint/functions
Manivannan Sadhasivam c994716d33 PCI: endpoint: pci-epf-test: Fix check for DMA MEMCPY test
[ Upstream commit 235c2b197a ]

Currently, if DMA MEMCPY test is requested by the host, and if the endpoint
DMA controller supports DMA_PRIVATE, the test will fail. This is not
correct since there is no check for DMA_MEMCPY capability and the DMA
controller can support both DMA_PRIVATE and DMA_MEMCPY.

Fix the check and also reword the error message.

Link: https://lore.kernel.org/r/20250116171650.33585-2-manivannan.sadhasivam@linaro.org
Fixes: 8353813c88 ("PCI: endpoint: Enable DMA tests for endpoints with DMA capabilities")
Reported-by: Niklas Cassel <cassel@kernel.org>
Closes: https://lore.kernel.org/linux-pci/Z3QtEihbiKIGogWA@ryzen
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-08 09:52:26 +01:00
..
Kconfig PCI: endpoint: Add PCI Endpoint function driver for MHI bus 2023-06-23 15:05:49 -05:00
Makefile PCI: endpoint: Add PCI Endpoint function driver for MHI bus 2023-06-23 15:05:49 -05:00
pci-epf-mhi.c PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio' 2024-12-09 10:32:29 +01:00
pci-epf-ntb.c PCI: endpoint: Pass EPF device ID to the probe function 2023-06-23 15:05:03 -05:00
pci-epf-test.c PCI: endpoint: pci-epf-test: Fix check for DMA MEMCPY test 2025-02-08 09:52:26 +01:00
pci-epf-vntb.c PCI: endpoint: Fix error handling in epf_ntb_epc_cleanup() 2024-08-03 08:54:01 +02:00