]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit316eb9a226f262f9caffff85fed7d4f794177e94
tree6e562079679e9310ebfd174cdbe84128e5a4b74c
parentf45fb5d4958fc1d3657cbed0b589e3789dba73c1
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