uio: uio_pci_generic: don't fail probe if pdev->irq equals to IRQ_NOTCONNECTED
authorJie Li <jie6.li@samsung.com>
Mon, 1 Feb 2021 04:25:59 +0000 (04:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 11:25:32 +0000 (12:25 +0100)
commit61de21a8315147da08a37ff8db2716739977eadc
treee737eccf817324a7ee2edd3d28706c75e6586b95
parent2fd10bcf0310b9525b2af9e1f7aa9ddd87c3772e
uio: uio_pci_generic: don't fail probe if pdev->irq equals to IRQ_NOTCONNECTED

Some devices use 255 as default value of Interrupt Line register, and this
maybe causes pdev->irq is set as IRQ_NOTCONNECTED in some scenarios. For
example, NVMe controller connects to Intel Volume Management Device (VMD).
In this situation, IRQ_NOTCONNECTED means INTx line is not connected, not
fault. If bind uio_pci_generic to these devices, uio frame will return
-ENOTCONN through request_irq.

This patch allows binding uio_pci_generic to device with dev->irq of
IRQ_NOTCONNECTED.

Acked-by: Kyungsan Kim <ks0204.kim@samsung.com>
Signed-off-by: Jie Li <jie6.li@samsung.com>
Link: https://lore.kernel.org/r/1612153559-17028-1-git-send-email-jie6.li@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pci_generic.c