Skip to contentSkip to conversation

mpt2sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced

PATCH In review Reddy, Sreekanth 1 participant 1 message Mar 14, 2014 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 5/11 mpt2sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced

Added code to send a SEP message that turns off the Predictive Failure LED when a drive is removed (if Predictive Failure LED was turned on).

Added a new flag 'pfa_led_on' per device that tracks the status of Predictive Failure LED. When the drive is removed, this flag is checked and sends the SEP message to turn off the respective Predictive Failure LED.

---
 drivers/scsi/mpt2sas/mpt2sas_base.h  |    2 +
 drivers/scsi/mpt2sas/mpt2sas_scsih.c |   70 +++++++++++++++++++++++++++++----
 2 files changed, 63 insertions(+), 9 deletions(-)
drivers/scsi/mpt2sas/mpt2sas_base.h +2 -0
index 863a248..80d26c1 100644
@@ -355,6 +355,7 @@ struct _internal_cmd {
  * @slot: number number
  * @phy: phy identifier provided in sas device page 0
  * @responding: used in _scsih_sas_device_mark_responding
+ * @pfa_led_on: flag for PFA LED status
  */
 struct _sas_device {
 	struct list_head list;
@@ -373,6 +374,7 @@ struct _sas_device {
 	u16	slot;
 	u8	phy;
 	u8	responding;
+	u8	pfa_led_on;
 };
 
 /**
drivers/scsi/mpt2sas/mpt2sas_scsih.c +61 -9

133 lines not on this page · raw message

Signature · 1 line
1.7.1