From 51931bad325e3feba934eaf95b422deeb24cf4e5 Mon Sep 17 00:00:00 2001 From: Gavin Shan Date: Fri, 14 Oct 2016 15:26:05 +1100 Subject: core/pci: Claim surprise hotplug capability This claims PCIe surprise hotplug capability through device node's property "ibm,slot-surprise-pluggable". The slot has the capability when surprise hotplug is supported in its slot's capability bits or link state change reporting is supported in PCIe link capability bits. In order for link state events to be properly raised during surprise hotplug, the power supply to the slot should be always on. The slot's power state should be switched accordingly during fundamental reset. Signed-off-by: Gavin Shan Signed-off-by: Stewart Smith --- include/pci-slot.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/pci-slot.h') diff --git a/include/pci-slot.h b/include/pci-slot.h index cf22432..694a448 100644 --- a/include/pci-slot.h +++ b/include/pci-slot.h @@ -161,6 +161,7 @@ struct pci_slot { /* Slot information */ uint8_t pluggable; + uint8_t surprise_pluggable; uint8_t power_ctl; uint8_t power_led_ctl; uint8_t attn_led_ctl; -- cgit v1.1