scsi: hpsa: correct ioaccel2 chaining
authorDon Brace <don.brace@microsemi.com>
Mon, 3 Jun 2019 21:43:29 +0000 (16:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:54:35 +0000 (09:54 +0200)
commit26566830cacb73fabed8f53d8aec256b789570a1
tree4b89b995cc5ce1b9112f35baac932ad3ef961ae4
parent3904ebeaf899354d57d66ab484e276b39d0a8682
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