Commit 6e73985a authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: qla2xxx: Pass little-endian values to the firmware

Pass dsd_list_len in little endian format to the firmware instead of in CPU
endian format.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Acked-by: default avatarHimanshu Madhani <hmadhani@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 219d27d7
...@@ -973,7 +973,7 @@ qla24xx_walk_and_build_sglist_no_difb(struct qla_hw_data *ha, srb_t *sp, ...@@ -973,7 +973,7 @@ qla24xx_walk_and_build_sglist_no_difb(struct qla_hw_data *ha, srb_t *sp,
/* add new list to cmd iocb or last list */ /* add new list to cmd iocb or last list */
*cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = dsd_list_len; *cur_dsd++ = cpu_to_le32(dsd_list_len);
cur_dsd = (uint32_t *)next_dsd; cur_dsd = (uint32_t *)next_dsd;
} }
*cur_dsd++ = cpu_to_le32(LSD(sle_dma)); *cur_dsd++ = cpu_to_le32(LSD(sle_dma));
...@@ -1072,7 +1072,7 @@ qla24xx_walk_and_build_sglist(struct qla_hw_data *ha, srb_t *sp, uint32_t *dsd, ...@@ -1072,7 +1072,7 @@ qla24xx_walk_and_build_sglist(struct qla_hw_data *ha, srb_t *sp, uint32_t *dsd,
/* add new list to cmd iocb or last list */ /* add new list to cmd iocb or last list */
*cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = dsd_list_len; *cur_dsd++ = cpu_to_le32(dsd_list_len);
cur_dsd = (uint32_t *)next_dsd; cur_dsd = (uint32_t *)next_dsd;
} }
sle_dma = sg_dma_address(sg); sle_dma = sg_dma_address(sg);
...@@ -1317,7 +1317,7 @@ qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp, ...@@ -1317,7 +1317,7 @@ qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp,
cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); cpu_to_le32(LSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = *cur_dsd++ =
cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); cpu_to_le32(MSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = dsd_list_len; *cur_dsd++ = cpu_to_le32(dsd_list_len);
cur_dsd = dsd_ptr->dsd_addr; cur_dsd = dsd_ptr->dsd_addr;
} }
*cur_dsd++ = cpu_to_le32(LSD(dif_dsd->dsd_list_dma)); *cur_dsd++ = cpu_to_le32(LSD(dif_dsd->dsd_list_dma));
...@@ -1378,7 +1378,7 @@ qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp, ...@@ -1378,7 +1378,7 @@ qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp,
cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); cpu_to_le32(LSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = *cur_dsd++ =
cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); cpu_to_le32(MSD(dsd_ptr->dsd_list_dma));
*cur_dsd++ = dsd_list_len; *cur_dsd++ = cpu_to_le32(dsd_list_len);
cur_dsd = dsd_ptr->dsd_addr; cur_dsd = dsd_ptr->dsd_addr;
} }
sle_dma = sg_dma_address(sg); sle_dma = sg_dma_address(sg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment