]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: pm80xx: Add sysfs attribute to check controller hmi error
authorVishakha Channapattan <vishakhavc@google.com>
Thu, 15 Apr 2021 10:33:46 +0000 (16:03 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Apr 2021 02:28:59 +0000 (22:28 -0400)
commit3406eb7068e511ffde7b53595191de2d45665f1d
tree8eadbf184d7807e88bd4345993e984c7ae9d38a8
parent5f3e8c7eb798e36bc0139fb159bfec8b395cb2db
scsi: pm80xx: Add sysfs attribute to check controller hmi error

A new sysfs variable 'ctl_hmi_error' is being introduced to give the error
details if the MPI initialization fails

Using the 'ctl_hmi_error' sysfs variable we can check the error details:

    linux-2dq0:~# cat /sys/class/scsi_host/host*/ctl_hmi_error
    0x00000000
    0x00000000
    0x00000000

Link: https://lore.kernel.org/r/20210415103352.3580-3-Viswas.G@microchip.com
Signed-off-by: Vishakha Channapattan <vishakhavc@google.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Signed-off-by: Ruksar Devadi <Ruksar.devadi@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_ctl.c