scsi: hpsa: correct ioaccel2 chaining
commit8be5629b9622eaa98a75f1763aa348f8eb37f504
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:53:37 +0000 (10 09:53 +0200)
tree709a11e8dd72b8841da06bee0733d562758dfc75
parentc1bef204c70af27c3bfedb3111a304a4f97a31a5
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