OSDN Git Service

hisi_sas: add v2 hw support for >4 SATA phys
authorJohn Garry <john.garry@huawei.com>
Fri, 8 Apr 2016 09:23:13 +0000 (17:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:16 +0000 (16:53 -0400)
commit11826e5dc7b7297164dd9dd6d735c6ff6acb4b86
treec222202b70445235e6f61a0640ec2d10c6ad161c
parent3a429d5ab60966cf75d9b99648700823c514b7ad
hisi_sas: add v2 hw support for >4 SATA phys

This patch adds support for directly attaching SATA disks to phy
4-8. The problem was that only registers concerned with phy 0-3 were
being considered in sata_int_v2_hw().  The issue was not detected
previously as the development board only exposed phy 0-3; the new board
provides access to 8 phys.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c