]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/pci/hotplug/pciehp_ctrl.c
PCI: pciehp: Remove a non-existent card, regardless of "surprise" capability
authorRajat Jain <rajatxjain@gmail.com>
Wed, 19 Feb 2014 02:53:19 +0000 (18:53 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Feb 2014 22:04:14 +0000 (15:04 -0700)
commit2b3940b60626ac4932fa048cc74f2a872cc4bfb4
tree290a5e787a7946d6b685bcf98f3017ffe970db01
parent50277c8b06d56f2345e1a0693db46db29fc6d063
PCI: pciehp: Remove a non-existent card, regardless of "surprise" capability

In case a card is physically yanked out, it should immediately be removed,
regardless of the "surprise" capability bit. Thus:

  - Always handle the physical removal - regardless of the "surprise" bit.
  - Don't use "surprise" capability when making decisions about enabling
    presence detect notifications.
  - Reword the comments to indicate the intent.

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/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_hpc.c