]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
misc: pci_endpoint_test: Skip IRQ tests if irq is out of range
authorChristian Bruel <christian.bruel@foss.st.com>
Mon, 4 Aug 2025 17:09:14 +0000 (19:09 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Wed, 27 Aug 2025 13:09:06 +0000 (18:39 +0530)
commitcc8e391067164f45f89b6132a5aaa18c33a0e32b
tree6bd11f80f0b85dbf6e1fc3a12883f10295a169d3
parent27fce9e8c6f031b526bf471e1076abca31473464
misc: pci_endpoint_test: Skip IRQ tests if irq is out of range

The pci_endpoint_test tests the 32-bit MSI range. However, the device might
not have all vectors configured. For example, if msi_interrupts is 8 in the
ep function space or if the MSI Multiple Message Capable value is
configured as 4 (maximum 16 vectors).

In this case, do not attempt to run the test to avoid timeouts and directly
return the error value.

Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20250804170916.3212221-2-christian.bruel@foss.st.com
drivers/misc/pci_endpoint_test.c