aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas/mpt3sas_base.h
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>2014-09-12 06:05:26 -0400
committerChristoph Hellwig <hch@lst.de>2014-09-16 12:14:18 -0400
commit0f624c391ecbf18e69b20d681f7e3c52b4ef02c1 (patch)
tree5debd9c5370127afbf4383786e46300292171e27 /drivers/scsi/mpt3sas/mpt3sas_base.h
parent861ff736c8d8ae574dcc1ef81e5da84ff85e70c9 (diff)
mpt3sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced
Added code to send an 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 an SEP message to turn off the respective Predictive Failure LED. Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpt3sas_base.h')
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h
index 9b90a6fef706..184826c20874 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.h
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.h
@@ -272,8 +272,10 @@ struct _internal_cmd {
272 * @channel: target channel 272 * @channel: target channel
273 * @slot: number number 273 * @slot: number number
274 * @phy: phy identifier provided in sas device page 0 274 * @phy: phy identifier provided in sas device page 0
275 * @fast_path: fast path feature enable bit
276 * @responding: used in _scsih_sas_device_mark_responding 275 * @responding: used in _scsih_sas_device_mark_responding
276 * @fast_path: fast path feature enable bit
277 * @pfa_led_on: flag for PFA LED status
278 *
277 */ 279 */
278struct _sas_device { 280struct _sas_device {
279 struct list_head list; 281 struct list_head list;
@@ -293,6 +295,7 @@ struct _sas_device {
293 u8 phy; 295 u8 phy;
294 u8 responding; 296 u8 responding;
295 u8 fast_path; 297 u8 fast_path;
298 u8 pfa_led_on;
296}; 299};
297 300
298/** 301/**