]> git.baikalelectronics.ru Git - kernel.git/commit
mpt3sas: Handle active cable exception event
authorChaitra P B <chaitra.basappa@broadcom.com>
Fri, 6 May 2016 08:59:27 +0000 (14:29 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2016 20:11:26 +0000 (16:11 -0400)
commit0a6c1c7d3b9f88304e23e9d06a885e794290d838
tree0f97d6dd6b4f815229817d8bd98fef9558d75097
parente47414640243787e3883241f6c1a0e0edb0b002f
mpt3sas: Handle active cable exception event

In-order to handle this 'MPI2_EVENT_ACTIVE_CABLE_EXCEPTION' event,
driver need to follow below steps,
1. Unmask the 'MPI2_EVENT_ACTIVE_CABLE_EXCEPTION' event,
so that FW can notify this event to host driver.
2. After receiving this event, add this event to AEN event queue,
for notifying this event to applications.
3. Then Print below message in kernel logs if the event data's reason
code is zero,
"Currently an active cable with ReceptacleID <ID_Value> cannot be powered
and devices connected to this active cable will not be seen. This active
cable requires <PowerValue_in_mW> of power"

This event is only for Intruder/Cutlass HBAs.

Signed-off-by: Chaitra P B <chaitra.basappa@broadcom.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c