]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5971141c786fd290dcb3af05b1ecdf6741e192ec
treeb8aaf1bb815978199cf9d03897dc1a83d84208d7
parent4a5b35d9bc037498dd375b850c23de42106d2b3f
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