[SCSI] mpt2sas: mpt2sas_base_get_sense_buffer_dma should be returning little endian
cpu_to_le64 when calculating the physical dma address. This will properly handle endianess on big endian systems. The return value of this function was changed from dma_addr_t to __le64. Remove the typecasting of u32 when setting the SenseBufferLowAddress, since its already in __le32 format. Signed-off-by:Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by:
Eric Moore <Eric.moore@lsi.com> Signed-off-by:
James Bottomley <James.Bottomley@suse.de>
Showing
- drivers/scsi/mpt2sas/mpt2sas_base.c 4 additions, 3 deletionsdrivers/scsi/mpt2sas/mpt2sas_base.c
- drivers/scsi/mpt2sas/mpt2sas_base.h 1 addition, 1 deletiondrivers/scsi/mpt2sas/mpt2sas_base.h
- drivers/scsi/mpt2sas/mpt2sas_ctl.c 1 addition, 1 deletiondrivers/scsi/mpt2sas/mpt2sas_ctl.c
- drivers/scsi/mpt2sas/mpt2sas_scsih.c 1 addition, 1 deletiondrivers/scsi/mpt2sas/mpt2sas_scsih.c
Please register or sign in to comment