diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2013-08-09 00:09:37 +0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-08-15 00:55:26 +0400 |
commit | 2e35afaefe64946caaecfacaf7fb568e46185e88 (patch) | |
tree | b8aaf1bb815978199cf9d03897dc1a83d84208d7 /drivers/pci/hotplug/pciehp.h | |
parent | 5c32b35b004f5ef70dcf62bbc42b8bed1e50b471 (diff) | |
download | linux-2e35afaefe64946caaecfacaf7fb568e46185e88.tar.xz |
PCI: pciehp: Add reset_slot() method
PCIe hotplug has a bus per slot, so we can just use a normal
secondary bus reset. However, if a slot supports surprise removal,
a bus reset can be seen as a presence detection change triggering
a hot-remove followed by a hot-add. Disable presence detection from
triggering an interrupt or being polled around the bus reset.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r-- | drivers/pci/hotplug/pciehp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index 7fb326983ed6..541bbe6d5343 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h @@ -155,6 +155,7 @@ void pciehp_green_led_off(struct slot *slot); void pciehp_green_led_blink(struct slot *slot); int pciehp_check_link_status(struct controller *ctrl); void pciehp_release_ctrl(struct controller *ctrl); +int pciehp_reset_slot(struct slot *slot, int probe); static inline const char *slot_name(struct slot *slot) { |