aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/cxlflash/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c
index eeb1c4798207..c77cb929dacb 100644
--- a/drivers/scsi/cxlflash/main.c
+++ b/drivers/scsi/cxlflash/main.c
@@ -1598,6 +1598,9 @@ static int start_afu(struct cxlflash_cfg *cfg)
1598 1598
1599 init_pcr(cfg); 1599 init_pcr(cfg);
1600 1600
1601 /* After an AFU reset, RRQ entries are stale, clear them */
1602 memset(&afu->rrq_entry, 0, sizeof(afu->rrq_entry));
1603
1601 /* Initialize RRQ pointers */ 1604 /* Initialize RRQ pointers */
1602 afu->hrrq_start = &afu->rrq_entry[0]; 1605 afu->hrrq_start = &afu->rrq_entry[0];
1603 afu->hrrq_end = &afu->rrq_entry[NUM_RRQ_ENTRY - 1]; 1606 afu->hrrq_end = &afu->rrq_entry[NUM_RRQ_ENTRY - 1];