summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_ctrl.c
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2016-08-04 01:29:45 +0200
committerBjorn Helgaas <bhelgaas@google.com>2016-08-22 18:57:41 +0200
commit8b7c8b46f111ae56df4fd196fcb0fd2495f3b966 (patch)
tree1c8a56c412c79043a5d254fdbf387f0bdb066200 /drivers/pci/hotplug/pciehp_ctrl.c
parentLinux 4.8-rc1 (diff)
downloadlinux-8b7c8b46f111ae56df4fd196fcb0fd2495f3b966.tar.xz
linux-8b7c8b46f111ae56df4fd196fcb0fd2495f3b966.zip
PCI: pciehp: Clear attention LED on device add
Clear the LED attention status after a successful device add. It is possible the attention LED was on from a previous power fault or link failure, and a subsequent successful device insert insertion should clear it. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_ctrl.c')
-rw-r--r--drivers/pci/hotplug/pciehp_ctrl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c
index 880978b6d534..7ea3e61ea745 100644
--- a/drivers/pci/hotplug/pciehp_ctrl.c
+++ b/drivers/pci/hotplug/pciehp_ctrl.c
@@ -120,6 +120,7 @@ static int board_added(struct slot *p_slot)
}
pciehp_green_led_on(p_slot);
+ pciehp_set_attention_status(p_slot, 0);
return 0;
err_exit: