linux/drivers/scsi/mpt3sas
Sreekanth Reddy 09c2f95ad4 scsi: mpt3sas: Swap I/O memory read value back to cpu endianness
Swap the I/O memory read value back to cpu endianness before storing it in
a data structures which are defined in the MPI headers where u8 components
are not defined in the endianness order.

In this area from day one mpt3sas driver is using le32_to_cpu() &
cpu_to_le32() APIs. But in commit cf6bf9710c
(mpt3sas: Bug fix for big endian systems) we have removed these APIs
before reading I/O memory which we should haven't done it. So
in this patch I am correcting it by adding these APIs back
before accessing I/O memory.

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-08-03 13:52:23 -04:00
..
mpi scsi: mpt3sas: Update MPI Headers 2018-05-08 00:34:20 -04:00
Kconfig mpt3sas: fix Kconfig dependency problem for mpt2sas back compatibility 2015-12-03 09:31:23 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpt3sas_base.c scsi: mpt3sas: Swap I/O memory read value back to cpu endianness 2018-08-03 13:52:23 -04:00
mpt3sas_base.h scsi: mpt3sas: Update driver version "25.100.00.00" 2018-05-08 00:40:05 -04:00
mpt3sas_config.c scsi: mpt3sas: Do not use 32-bit atomic request descriptor for Ventura controllers. 2018-02-27 22:26:16 -05:00
mpt3sas_ctl.c scsi: mpt3sas: For NVME device, issue a protocol level reset 2018-05-08 00:39:49 -04:00
mpt3sas_ctl.h scsi: mpt3sas: Increase event log buffer to support 24 port HBA's. 2018-05-08 00:34:20 -04:00
mpt3sas_debug.h mpt2sas, mpt3sas: Remove SCSI_MPTXSAS_LOGGING entry from Kconfig 2015-11-11 18:31:14 -05:00
mpt3sas_scsih.c scsi: mpt3sas: fix possible memory leak. 2018-05-08 00:40:05 -04:00
mpt3sas_transport.c scsi: mpt3sas: Do not use 32-bit atomic request descriptor for Ventura controllers. 2018-02-27 22:26:16 -05:00
mpt3sas_trigger_diag.c mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_trigger_diag.h mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_warpdrive.c scsi: mpt3sas: Bug fix for big endian systems. 2018-05-08 00:34:19 -04:00