From ab5ea2283fe9cb989820fb8fb739b5dc4fcb7d93 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 11 Dec 2018 02:46:38 +0000 Subject: [PATCH] qla2x00t: Read MBX_2 after MBC_PORT_NODE_NAME_LIST MBX_2 contains the number of bytes required for the buffer, but qla2x00_mailbox_command() doesn't request MBX_2 from the firmware. Signed-off-by: Anton Nefedov [ bvanassche: edited commit message ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7839 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_mbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla2x00t/qla_mbx.c b/qla2x00t/qla_mbx.c index 77a36646c..d836c87ca 100644 --- a/qla2x00t/qla_mbx.c +++ b/qla2x00t/qla_mbx.c @@ -1368,7 +1368,7 @@ qla2x00_get_node_name_list(scsi_qla_host_t *vha, bool include_initiators, mc.mb[7] = LSW(MSD(pmap_dma)); mc.mb[8] = dma_size; mc.out_mb = MBX_0|MBX_1|MBX_2|MBX_3|MBX_6|MBX_7|MBX_8; - mc.in_mb = MBX_0|MBX_1; + mc.in_mb = MBX_0|MBX_1|MBX_2; mc.tov = 30; mc.flags = MBX_DMA_IN;