From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f65.google.com ([209.85.128.65]:53943 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727707AbeLMTvW (ORCPT ); Thu, 13 Dec 2018 14:51:22 -0500 Received: by mail-wm1-f65.google.com with SMTP id y1so3556169wmi.3 for ; Thu, 13 Dec 2018 11:51:21 -0800 (PST) Date: Thu, 13 Dec 2018 20:51:16 +0100 From: Alexander Sverdlin To: Boris Brezillon Cc: Richard Weinberger , Miquel Raynal , linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , Marek Vasut , stable@vger.kernel.org Subject: Re: [PATCH v2] mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan() Message-Id: <20181213205116.a1ca55bbd45ad1157563b33e@gmail.com> In-Reply-To: <20181213192227.3815-1-boris.brezillon@bootlin.com> References: <20181213192227.3815-1-boris.brezillon@bootlin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: Hello Boris! On Thu, 13 Dec 2018 20:22:27 +0100 Boris Brezillon wrote: > 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). > > Fixes: e1e6255c311b ("mtd: rawnand: omap2: convert driver to nand_scan()") > Reported-by: Alexander Sverdlin Yes, it was it, thank you! Tested-by: Alexander Sverdlin > Cc: > Signed-off-by: Boris Brezillon > --- > Changes in v2: > - Fix the prefix > --- > drivers/mtd/nand/raw/omap2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/raw/omap2.c b/drivers/mtd/nand/raw/omap2.c > index 886d05c391ef..68e8b9f7f372 100644 > --- a/drivers/mtd/nand/raw/omap2.c > +++ b/drivers/mtd/nand/raw/omap2.c > @@ -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"); > -- > 2.17.1 > -- Alexander Sverdlin.