]> git.baikalelectronics.ru Git - kernel.git/commit
hisi_sas: fix v2 hw multiple SATA disk issue
authorJohn Garry <john.garry@huawei.com>
Fri, 8 Apr 2016 09:23:12 +0000 (17:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:16 +0000 (16:53 -0400)
commitf26b652d375d52c734a92e15720c66c3400b2ec1
treec1013f94577b30379565892da32b264b038d31fd
parentdfd8042e0dc159508ae36489ceb798f64d458a67
hisi_sas: fix v2 hw multiple SATA disk issue

Intermittently it is found that when multiple SATA disks are directly
connected to the host that some disks are not detected.  The problem is
that all set bitfields in ENT_INT_SRC1 are cleared for all phys in
sata_int_v2_hw() - it should clear the set bit for the phy being
serviced.

Also unnecessary double-write to ENT_INT_SRC1 and ENT_INT_SRC_MSK1 is
removed (remaining writes are done at end label).

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