[SCSI] mpt2sas: Provide sysfs attribute to report Backup Rail Monitor Status
authorsreekanth.reddy@lsi.com <sreekanth.reddy@lsi.com>
Tue, 17 Jul 2012 10:26:07 +0000 (15:56 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 24 Aug 2012 09:10:25 +0000 (13:10 +0400)
commit6c265660c26267754a02063642ae042d469b4ef9
treea6550ee176bf29c9c3f88f48de0c73bbebc56809
parente17eee45102bfd28f357efa119c4ecaf7a17c155
[SCSI] mpt2sas: Provide sysfs attribute to report Backup Rail Monitor Status

A new sysfs shost attribute called "BMR_status" is implemented to
report Backup Rail Monitor status.

This attribute is located in the path
        /sys/class/scsi_host/host#/BMR_status

when reading this adapter attribute, then driver will output the state
of GPIO[24]. It returns "0" if BMR is healthy and it returns "1" for failure.

if it returns an empty string then it means that there was an error while
obtaining the BMR status. Then check dmesg for what error has occured.

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_base.h
drivers/scsi/mpt2sas/mpt2sas_config.c
drivers/scsi/mpt2sas/mpt2sas_ctl.c