Skip to content

Commit

Permalink
PCI: pciehp: Clear attention LED on device add
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Keith Busch authored and Bjorn Helgaas committed Aug 22, 2016
1 parent 29b4817 commit 8b7c8b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pci/hotplug/pciehp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8b7c8b4

Please sign in to comment.