From: Keith Busch Date: Wed, 3 Aug 2016 23:29:45 +0000 (-0600) Subject: PCI: pciehp: Clear attention LED on device add X-Git-Tag: v4.9-rc1~32^2~10^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b7c8b46f111ae56df4fd196fcb0fd2495f3b966;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c index 880978b..7ea3e61 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: