qla2xxx: Add flush after updating ATIOQ consumer index.
authorQuinn Tran <[email protected]>
Wed, 10 Jun 2015 15:05:19 +0000 (11:05 -0400)
committerNicholas Bellinger <[email protected]>
Fri, 24 Jul 2015 21:19:05 +0000 (14:19 -0700)
After updating the consumer index of ATIO Q, a read is
required to flush the write to the adapter register.

Signed-off-by: Quinn Tran <[email protected]>
Signed-off-by: Himanshu Madhani <[email protected]>
Reviewed-by: Nicholas Bellinger <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/scsi/qla2xxx/qla_target.c

index 9c14d107d29a76a92006e9077b7fdb34ce6d7ffb..5047c85666443f0ce40c4e751348639de1ade3ad 100644 (file)
@@ -5546,6 +5546,7 @@ qlt_24xx_process_atio_queue(struct scsi_qla_host *vha)
 
        /* Adjust ring index */
        WRT_REG_DWORD(ISP_ATIO_Q_OUT(vha), ha->tgt.atio_ring_index);
+       RD_REG_DWORD_RELAXED(ISP_ATIO_Q_OUT(vha));
 }
 
 void