]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: directly attached disk LED feature for v2 hw
authorXiaofei Tan <tanxiaofei@huawei.com>
Wed, 17 Jan 2018 16:46:53 +0000 (00:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 23 Jan 2018 01:03:59 +0000 (20:03 -0500)
commite5e57d592cf95a3d281e18696c8968523e34940e
tree333622491f3425dd5643ec103cb7175aca9c9796
parent755b5d14ef5eb8f08948d7002dd8938ee5441b54
scsi: hisi_sas: directly attached disk LED feature for v2 hw

This patch implements LED feature of directly attached disk for v2 hw.
As libsas has provided an interface lldd_write_gpio() for this feature,
we just need realise the interface following SPGIO API.

We use an CPLD to finish the hardware part of this feature, and the base
address of CPLD should be configured through ACPI or DT tables.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c