mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()
Subsystems (3)
PATCH v2 1/1 mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()
Commit e1e6255c311b ("mtd: rawnand: omap2: convert driver to nand_scan()") moved part of the init code in the ->attach_chip hook and at the same time changed the struct device object passed to dma_request_chan() (&pdev->dev instead of pdev->dev.parent).
---
Changes in v2:
- Fix the prefix
--- drivers/mtd/nand/raw/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/omap2.c +1 -1
@@ -1944,7 +1944,7 @@ static int omap_nand_attach_chip(struct nand_chip *chip)case NAND_OMAP_PREFETCH_DMA :dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - info->dma =dma_request_chan (dev,"rxtx" ); + info->dma =dma_request_chan (dev->parent,"rxtx" );if (IS_ERR (info->dma)) {dev_err (dev,"DMA engine request failed\n" );
Signature · 1 line
2.17.1
Hello Boris!
Quoted 7 lines · On Thu, 13 Dec 2018 20:22:27 +0100 Boris Brezillon…
Commit
e1e6255c311b("mtd: rawnand: omap2: convert driver tonand_scan()") moved part of the init code in the ->attach_chip hook and at the same time changed the struct device object passed todma_request_chan()(&pdev->devinstead ofpdev->dev.parent).Fixes e1e6255c311b ("mtd: rawnand: omap2: convert driver to nand_scan()")Reported-by Alexander Sverdlin <[email protected]>
Yes, it was it, thank you!
Quoted 25 lines
Cc <[email protected]>Signed-off-by Boris Brezillon <[email protected]>---
Changes in v2:
- Fix the prefix--- drivers/mtd/nand/raw/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/nand/raw/omap2.c +1
-1@@ -1944,7 +1944,7 @@ static int omap_nand_attach_chip(struct nand_chip *chip)case NAND_OMAP_PREFETCH_DMA :dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - info->dma =dma_request_chan (dev,"rxtx" ); + info->dma =dma_request_chan (dev->parent,"rxtx" );if (IS_ERR (info->dma)) {dev_err (dev,"DMA engine request failed\n" );Signature · 1 line
2.17.1
Signature · 1 line
Alexander Sverdlin.
Miquel Raynal
maintainerHi Boris,
Boris Brezillon <[email protected]> wrote on Thu, 13 Dec 2018 20:22:27 +0100:
Quoted 10 lines
Commit
e1e6255c311b("mtd: rawnand: omap2: convert driver tonand_scan()") moved part of the init code in the ->attach_chip hook and at the same time changed the struct device object passed todma_request_chan()(&pdev->devinstead ofpdev->dev.parent).Fixes e1e6255c311b ("mtd: rawnand: omap2: convert driver to nand_scan()")Reported-by Alexander Sverdlin <[email protected]>Cc <[email protected]>Signed-off-by Boris Brezillon <[email protected]>---
Applied on nand/next,
Thanks,
Miquèl