PCI: pciehp: Don't check adapter or latch status while disabling
authorRajat Jain <rajatxjain@gmail.com>
Wed, 5 Feb 2014 02:30:21 +0000 (18:30 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 11 Feb 2014 23:08:44 +0000 (16:08 -0700)
commit02e93a8a7c1dcecc1a33ea762a0c041cbb6a0a66
tree512f033f19542ae614ec7899031dda18a6b4df06
parentb1811d2455f32754cc3d8725bf2e961c5eda2a72
PCI: pciehp: Don't check adapter or latch status while disabling

It does not make much sense to refuse to disable a slot if an adapter is
not present or the latch is open. If an adapter is not present, it provides
an even better reason to disable the device slot.

This is specially a problem for link state hot-plug, because some ports use
in band mechanism for presence detection. Thus when link goes down,
presence detect also goes down. We _want_ that the removal should take
place in such case.

Thus remove the checks for adapter and latch in pciehp_disable_slot()

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