]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitde894baa5280428aaa28e0a2a7d08402e37119ae
treea6550ee176bf29c9c3f88f48de0c73bbebc56809
parent2d9596303941b8225cd87bcf3cc586dc7db8963b
[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