]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: pci_endpoint: Skip doorbell test when unsupported
authorKoichiro Den <den@valinux.co.jp>
Sun, 15 Feb 2026 15:03:34 +0000 (00:03 +0900)
committerManivannan Sadhasivam <mani@kernel.org>
Tue, 24 Feb 2026 10:31:04 +0000 (16:01 +0530)
commitb4a31737679576dc8aa6de43d3c10bfad7d3f57e
tree7beea76e2148aca79b05bee7335f6b9c21131d2d
parent51fba4aa66192fa65a31f213218167d9af326f1e
selftests: pci_endpoint: Skip doorbell test when unsupported

PCITEST_DOORBELL may return -EOPNOTSUPP when the endpoint does not
advertise CAP_DYNAMIC_INBOUND_MAPPING.

Treat this like other optional capabilities and skip the doorbell test
instead of reporting a failure.

Suggested-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260215150334.3391943-4-den@valinux.co.jp
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c