]> 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)
commitdfed89bedc0d57f1fb4dfdb4158e45f8a2be430f
treeb8aaf1bb815978199cf9d03897dc1a83d84208d7
parent7d3075742c5e6c91ad4d903d386b94d0c128db96
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