hpsa: fix endianness issue with scatter gather elements
authorStephen M. Cameron <stephenmcameron@gmail.com>
Fri, 14 Nov 2014 23:26:59 +0000 (17:26 -0600)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 08:11:24 +0000 (09:11 +0100)
commit50a0decf75b66480aa5b076d4e1bca11bc202efe
tree6e562079679e9310ebfd174cdbe84128e5a4b74c
parent92084715f4d296c99ac120b3b77cf72d5c194c86
hpsa: fix endianness issue with scatter gather elements

The hardware needs little endian scatter gather addresses and
lengths but we were not bothering to convert from cpu byte
order as we should have been.  On Intel, this is all just
a bunch of no-ops macros, but it makes the code endian-clean(er).

Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Robert Elliott <elliott@hp.com>
Reviewed-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h