]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: fix v2 hw underflow residual value
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 10 Aug 2017 16:09:28 +0000 (00:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Aug 2017 00:15:01 +0000 (20:15 -0400)
commit973321c5e8707aecd0a7c1679b37efe16c1e6d8f
tree9bd6fa82cbe8532aa629384ba20a64f5939bdeea
parentfadb2df6b289622adfaa358ceb01c8b81226d69d
scsi: hisi_sas: fix v2 hw underflow residual value

The value dw0 is the residual bytes when UNDERFLOW error happens, but we
filled the residual with the value of dw3 before. So change the residual
from dw3 to dw0.

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_v2_hw.c