]> git.baikalelectronics.ru Git - kernel.git/commit
uio/uio_pci_generic: don't fail probe if pdev->irq == NULL
authorJim Harris <james.r.harris@intel.com>
Tue, 2 May 2017 14:20:59 +0000 (07:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:59:06 +0000 (16:59 +0200)
commit544995492740f7005a209a7fed650ca267e8315b
treed723684cdea22ba17f66c3c41f09fe1f72de7724
parenta4ce29dae533cbf95c45827bf5462f0a21d115f2
uio/uio_pci_generic: don't fail probe if pdev->irq == NULL

Some userspace drivers and frameworks only poll and do not
require interrupts to be available and enabled on the
PCI device.  So remove the requirement that an IRQ is
assigned.  If an IRQ is not assigned and a userspace
driver tries to read()/write(), the generic uio
framework will just return -EIO.

This allows binding uio_pci_generic to devices which
cannot get an IRQ assigned, such as an NVMe controller
behind Intel Volume Management Device (VMD), since VMD
does not support INTx interrupts.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pci_generic.c