mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
mtd: rawnand: brcmnand: Don't default to edu transfer
When flash-dma is absent do not default to using flash-edu.
Make sure flash-edu is enabled before setting EDU transfer
function.
Fixes: a5d53ad26a ("mtd: rawnand: brcmnand: Add support for flash-edu for dma transfers")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200612212902.21347-2-kdasu.kdev@gmail.com
This commit is contained in:
committed by
Miquel Raynal
parent
cb272395dc
commit
bee3ab8bdd
@@ -3023,8 +3023,9 @@ int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
/* set edu transfer function to call */
|
if (has_edu(ctrl))
|
||||||
ctrl->dma_trans = brcmnand_edu_trans;
|
/* set edu transfer function to call */
|
||||||
|
ctrl->dma_trans = brcmnand_edu_trans;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable automatic device ID config, direct addressing */
|
/* Disable automatic device ID config, direct addressing */
|
||||||
|
|||||||
Reference in New Issue
Block a user