mtd:rawnand: brcmnand: Fix PM resume crash
This change fixes crash observed on PM resume. This bug
was introduced in the change made for flash-edu support.
Fixes: a5d53ad26a
("mtd: rawnand: brcmnand: Add support for flash-edu for dma transfers")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
7b01b7239d
commit
f3a6a6c5e0
|
@ -2728,9 +2728,8 @@ static int brcmnand_resume(struct device *dev)
|
|||
flash_dma_writel(ctrl, FLASH_DMA_ERROR_STATUS, 0);
|
||||
}
|
||||
|
||||
if (has_edu(ctrl))
|
||||
if (has_edu(ctrl)) {
|
||||
ctrl->edu_config = edu_readl(ctrl, EDU_CONFIG);
|
||||
else {
|
||||
edu_writel(ctrl, EDU_CONFIG, ctrl->edu_config);
|
||||
edu_readl(ctrl, EDU_CONFIG);
|
||||
brcmnand_edu_init(ctrl);
|
||||
|
|
Loading…
Reference in New Issue