scsi: hpsa: correct ioaccel2 chaining
commitcb1901100a6d5fc479564f0671f3853be7e60085
authorDon Brace <don.brace@microsemi.com>
Mon, 3 Jun 2019 21:43:29 +0000 (3 16:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:55:43 +0000 (10 09:55 +0200)
tree5da7fac1cfbf7b82defe2f9a29683f6e9b1a7417
parent71e54f579ec80a93f45cd8d3266a7a37cb8f96bc
scsi: hpsa: correct ioaccel2 chaining

[ Upstream commit 625d7d3518875c4d303c652a198feaa13d9f52d9 ]

- set ioaccel2_sg_element member 'chain_indicator' to IOACCEL2_LAST_SG for
  the last s/g element.

- set ioaccel2_sg_element member 'chain_indicator' to IOACCEL2_CHAIN when
  chaining.

Reviewed-by: Bader Ali - Saleh <bader.alisaleh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Matt Perricone <matt.perricone@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h