mirror of https://gitee.com/openkylin/linux.git
mtd: rawnand: cadence: reinit completion before executing a new command
Reing the completion object before executing CDMA command to make sure
the 'done' flag is OK.
Fixes: ec4ba01e89
("mtd: rawnand: Add new Cadence NAND driver to MTD subsystem")
Cc: stable@vger.kernel.org
Signed-off-by: Piotr Sroka <piotrs@cadence.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1581328530-29966-4-git-send-email-piotrs@cadence.com
This commit is contained in:
parent
9bf1903bed
commit
0d7d6c8183
|
@ -998,6 +998,7 @@ static int cadence_nand_cdma_send(struct cdns_nand_ctrl *cdns_ctrl,
|
|||
return status;
|
||||
|
||||
cadence_nand_reset_irq(cdns_ctrl);
|
||||
reinit_completion(&cdns_ctrl->complete);
|
||||
|
||||
writel_relaxed((u32)cdns_ctrl->dma_cdma_desc,
|
||||
cdns_ctrl->reg + CMD_REG2);
|
||||
|
|
Loading…
Reference in New Issue