forked from Minki/linux
scsi: qla2xxx: Set the responder mode if appropriate for ELS pass-through IOCBs
According to the firmware documentation responder mode must be set for ELS pass-through IOCBs if a response is expected. Cc: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Tested-by: Himanshu Madhani <hmadhani@marvell.com> Reviewed-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
9933c050fe
commit
0f8243e646
@ -2700,9 +2700,9 @@ qla24xx_els_logo_iocb(srb_t *sp, struct els_entry_24xx *els_iocb)
|
|||||||
els_iocb->s_id[0] = vha->d_id.b.al_pa;
|
els_iocb->s_id[0] = vha->d_id.b.al_pa;
|
||||||
els_iocb->s_id[1] = vha->d_id.b.area;
|
els_iocb->s_id[1] = vha->d_id.b.area;
|
||||||
els_iocb->s_id[2] = vha->d_id.b.domain;
|
els_iocb->s_id[2] = vha->d_id.b.domain;
|
||||||
els_iocb->control_flags = 0;
|
|
||||||
|
|
||||||
if (elsio->u.els_logo.els_cmd == ELS_DCMD_PLOGI) {
|
if (elsio->u.els_logo.els_cmd == ELS_DCMD_PLOGI) {
|
||||||
|
els_iocb->control_flags = 0;
|
||||||
els_iocb->tx_byte_count = els_iocb->tx_len =
|
els_iocb->tx_byte_count = els_iocb->tx_len =
|
||||||
cpu_to_le32(sizeof(struct els_plogi_payload));
|
cpu_to_le32(sizeof(struct els_plogi_payload));
|
||||||
put_unaligned_le64(elsio->u.els_plogi.els_plogi_pyld_dma,
|
put_unaligned_le64(elsio->u.els_plogi.els_plogi_pyld_dma,
|
||||||
@ -2718,6 +2718,7 @@ qla24xx_els_logo_iocb(srb_t *sp, struct els_entry_24xx *els_iocb)
|
|||||||
ql_dump_buffer(ql_log_info, vha, 0x0109,
|
ql_dump_buffer(ql_log_info, vha, 0x0109,
|
||||||
(uint8_t *)els_iocb, 0x70);
|
(uint8_t *)els_iocb, 0x70);
|
||||||
} else {
|
} else {
|
||||||
|
els_iocb->control_flags = 1 << 13;
|
||||||
els_iocb->tx_byte_count =
|
els_iocb->tx_byte_count =
|
||||||
cpu_to_le32(sizeof(struct els_logo_payload));
|
cpu_to_le32(sizeof(struct els_logo_payload));
|
||||||
put_unaligned_le64(elsio->u.els_logo.els_logo_pyld_dma,
|
put_unaligned_le64(elsio->u.els_logo.els_logo_pyld_dma,
|
||||||
|
Loading…
Reference in New Issue
Block a user