]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pciehp: Do not clear Presence Detect Changed during initialization
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 13 Oct 2017 18:35:47 +0000 (21:35 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Nov 2017 00:49:00 +0000 (18:49 -0600)
commitec9d58df01b02dd13b711934b0173890a0cfba34
tree63d1cc602cf4232761473018bacd4dba4a6b10c1
parent2ccced7f7868a676a1bc867bf685865e33a5cf82
PCI: pciehp: Do not clear Presence Detect Changed during initialization

It is possible that the hotplug event has already happened before the
driver is attached to a PCIe hotplug downstream port. If we just clear the
status we never get the hotplug interrupt and thus the event will be
missed.

To make sure that does not happen, we leave Presence Detect Changed bit
untouched during initialization. Then once the event is unmasked we get an
interrupt and handle the hotplug event properly.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp_hpc.c