PCI: pciehp: Add reset_slot() method
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Aug 2013 20:09:37 +0000 (14:09 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Aug 2013 20:55:26 +0000 (14:55 -0600)
commit2e35afaefe64946caaecfacaf7fb568e46185e88
treeb8aaf1bb815978199cf9d03897dc1a83d84208d7
parent5c32b35b004f5ef70dcf62bbc42b8bed1e50b471
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>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_core.c
drivers/pci/hotplug/pciehp_hpc.c