diff options
author | Kamal Dasu <kdasu.kdev@gmail.com> | 2020-06-12 17:29:01 -0400 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-06-26 08:35:10 +0200 |
commit | bee3ab8bdd3b13faf08e5b6e0218f59b0a49fcc3 (patch) | |
tree | b14387a0548de529b4b32ed9970226201dadc09d /drivers/mtd/nand | |
parent | cb272395dceef1652247dad08a50ed4153ffbd43 (diff) | |
download | linux-stable-bee3ab8bdd3b13faf08e5b6e0218f59b0a49fcc3.tar.gz linux-stable-bee3ab8bdd3b13faf08e5b6e0218f59b0a49fcc3.tar.bz2 linux-stable-bee3ab8bdd3b13faf08e5b6e0218f59b0a49fcc3.zip |
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: a5d53ad26a8b ("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
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/raw/brcmnand/brcmnand.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 44068e9eea03..ac934a715a19 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -3023,8 +3023,9 @@ int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc) if (ret < 0) goto err; - /* set edu transfer function to call */ - ctrl->dma_trans = brcmnand_edu_trans; + if (has_edu(ctrl)) + /* set edu transfer function to call */ + ctrl->dma_trans = brcmnand_edu_trans; } /* Disable automatic device ID config, direct addressing */ |