]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
scsi: megaraid_sas: Big endian RDPQ mode fix
authorShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Fri, 10 Feb 2017 08:59:20 +0000 (00:59 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 13 Feb 2017 12:26:22 +0000 (07:26 -0500)
Fix if RDPQ mode enabled MR FW is deployed on big endian host machine,
driver does not setup reply address correctly.

Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c

index 4aaf30769c94e1ca28cf6ea346578cde998eb9a8..b26ee85ae11c42eb89de40351f2858230840a343 100644 (file)
@@ -580,7 +580,7 @@ megasas_alloc_rdpq_fusion(struct megasas_instance *instance)
                }
 
                fusion->rdpq_virt[i].RDPQBaseAddress =
-                       fusion->reply_frames_desc_phys[i];
+                       cpu_to_le64(fusion->reply_frames_desc_phys[i]);
 
                reply_desc = fusion->reply_frames_desc[i];
                for (j = 0; j < fusion->reply_q_depth; j++, reply_desc++)