PCI: Allow hotplug service drivers to operate in polling mode
authorRajat Jain <rajatxjain@gmail.com>
Mon, 31 Mar 2014 23:51:23 +0000 (16:51 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Apr 2014 22:47:46 +0000 (16:47 -0600)
commit374a91404314cef882b27b293dd34d89e2a3c0b6
tree0cb20186a319974c787d5271abec960b3dcb8e62
parent476a357fd9045a4c91faa055fadabf550aedb8c5
PCI: Allow hotplug service drivers to operate in polling mode

Today the PCIe port bus driver disables the Hot-plug service if the port
device does not have the capability to generate interrupts.  However, a
user must be able to use the "pciehp_poll_mode" parameter to use the pciehp
in polling method in such a case.  Today it is not possible.

This patch allows a hotplug service driver to decide whether or not it
would like to continue in the absence of interrupts.

Signed-off-by: Rajat Jain <rajatxjain@gmail.com>
Signed-off-by: Rajat Jain <rajatjain@juniper.net>
Signed-off-by: Guenter Roeck <groeck@juniper.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_core.c