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)
commit7bb25a89aad2cc96de188c9ecc89a175360f6fb4
treefd8b947988135d5d0235db52e0a2365946ae7af2
parenta94a2572b97744d3a35a1996df0e5cf6b2461a4a
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: d6a9000b81be ("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