Skip to contentSkip to conversation

pciehp: Clear attention LED on device add

PATCH Applied Keith Busch 2 participants 2 messages Aug 3, 2016 – Aug 22, 2016 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pciehp: Clear attention LED on device add

This patch clears 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 inserted in the slot should clear it.

---
 drivers/pci/hotplug/pciehp_ctrl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/hotplug/pciehp_ctrl.c +1 -0
index 880978b..7ea3e61 100644
@@ -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:
Signature · 1 line
2.7.2
#1 lore raw
Quoted 6 lines · Keith Busch

This patch clears 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 inserted in the slot should clear it.

Applied to pci/hotplug for v4.9, thanks, Keith!

Quoted 23 lines
---
 drivers/pci/hotplug/pciehp_ctrl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/hotplug/pciehp_ctrl.c +1 -0
index 880978b..7ea3e61 100644
@@ -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:
Signature · 6 lines
2.7.2

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html