scsi: hisi_sas: Set the BIST init value before enabling BIST
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 24 Oct 2019 14:08:09 +0000 (22:08 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2019 01:31:13 +0000 (21:31 -0400)
commit65a3b8bd56942dc988b8c05615bd3f510a10012b
tree7293a4955b0799942f6b43611699a05626de598e
parent35160421b63d4753a72e9f72ebcdd9d6f88f84b9
scsi: hisi_sas: Set the BIST init value before enabling BIST

If set the BIST init value after enabling BIST, there may be still some few
error bits. According to the process, need to set the BIST init value
before enabling BIST.

Fixes: 97b151e75861 ("scsi: hisi_sas: Add BIST support for phy loopback")
Link: https://lore.kernel.org/r/1571926105-74636-3-git-send-email-john.garry@huawei.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.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_v3_hw.c