]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Set protection parameters prior to adding SCSI host
authorJohn Garry <john.garry@huawei.com>
Thu, 10 Jan 2019 13:32:41 +0000 (21:32 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 02:38:43 +0000 (21:38 -0500)
commitca6c9c407a8168e208822b60d201c1a322a3083c
treefd8b947988135d5d0235db52e0a2365946ae7af2
parent6241b579abdf215c04d73f5026ad329e18440294
scsi: hisi_sas: Set protection parameters prior to adding SCSI host

Currently we set the protection parameters after calling scsi_add_host()
for v3 hw.

They should be set beforehand, so make this change.

Appearantly this fixes our DIX issue (not mainline yet) also, but more
testing required.

Fixes: da9ec3bfb501 ("scsi: hisi_sas: Add support for DIF feature for v2 hw")
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