linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: rawnand: qcom: don't include dma-direct.h
@ 2018-08-27  8:59 Christoph Hellwig
  2018-08-27  9:51 ` Richard Weinberger
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2018-08-27  8:59 UTC (permalink / raw)
  To: linux-mtd

A recent commit removed the incorrect use of phys_to_dma from this
driver, but failed to remove the dma-direct.h include, so do that
now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/mtd/nand/raw/qcom_nandc.c | 1 -
 include/linux/dma-mapping.h       | 6 ++++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
index d1d470bb32e4..d2831b0b28fb 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -23,7 +23,6 @@
 #include <linux/of_device.h>
 #include <linux/delay.h>
 #include <linux/dma/qcom_bam_dma.h>
-#include <linux/dma-direct.h> /* XXX: drivers shall never use this directly! */
 
 /* NANDc reg offsets */
 #define	NAND_FLASH_CMD			0x00

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mtd: rawnand: qcom: don't include dma-direct.h
  2018-08-27  8:59 [PATCH] mtd: rawnand: qcom: don't include dma-direct.h Christoph Hellwig
@ 2018-08-27  9:51 ` Richard Weinberger
  2018-08-27 12:31   ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2018-08-27  9:51 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-mtd @ lists . infradead . org

On Mon, Aug 27, 2018 at 10:59 AM Christoph Hellwig <hch@lst.de> wrote:
>
> A recent commit removed the incorrect use of phys_to_dma from this
> driver, but failed to remove the dma-direct.h include, so do that
> now.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  drivers/mtd/nand/raw/qcom_nandc.c | 1 -
>  include/linux/dma-mapping.h       | 6 ++++++
>  2 files changed, 6 insertions(+), 1 deletion(-)

Hmm, the diffstat does not match the diff itself.

> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
> index d1d470bb32e4..d2831b0b28fb 100644
> --- a/drivers/mtd/nand/raw/qcom_nandc.c
> +++ b/drivers/mtd/nand/raw/qcom_nandc.c
> @@ -23,7 +23,6 @@
>  #include <linux/of_device.h>
>  #include <linux/delay.h>
>  #include <linux/dma/qcom_bam_dma.h>
> -#include <linux/dma-direct.h> /* XXX: drivers shall never use this directly! */
>
>  /* NANDc reg offsets */
>  #define        NAND_FLASH_CMD                  0x00
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/



-- 
Thanks,
//richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mtd: rawnand: qcom: don't include dma-direct.h
  2018-08-27  9:51 ` Richard Weinberger
@ 2018-08-27 12:31   ` Christoph Hellwig
  2018-09-04 21:59     ` Miquel Raynal
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2018-08-27 12:31 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: Christoph Hellwig, linux-mtd @ lists . infradead . org

On Mon, Aug 27, 2018 at 11:51:29AM +0200, Richard Weinberger wrote:
> On Mon, Aug 27, 2018 at 10:59 AM Christoph Hellwig <hch@lst.de> wrote:
> >
> > A recent commit removed the incorrect use of phys_to_dma from this
> > driver, but failed to remove the dma-direct.h include, so do that
> > now.
> >
> > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > ---
> >  drivers/mtd/nand/raw/qcom_nandc.c | 1 -
> >  include/linux/dma-mapping.h       | 6 ++++++
> >  2 files changed, 6 insertions(+), 1 deletion(-)
> 
> Hmm, the diffstat does not match the diff itself.

Tha's because it had an accidental hunk in my tree I removed when
sending.  I think you can trust the diff, but if you really want
I can resend.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mtd: rawnand: qcom: don't include dma-direct.h
  2018-08-27 12:31   ` Christoph Hellwig
@ 2018-09-04 21:59     ` Miquel Raynal
  0 siblings, 0 replies; 4+ messages in thread
From: Miquel Raynal @ 2018-09-04 21:59 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Richard Weinberger, linux-mtd @ lists . infradead . org

Hi Christoph,

Christoph Hellwig <hch@lst.de> wrote on Mon, 27 Aug 2018 14:31:07 +0200:

> On Mon, Aug 27, 2018 at 11:51:29AM +0200, Richard Weinberger wrote:
> > On Mon, Aug 27, 2018 at 10:59 AM Christoph Hellwig <hch@lst.de> wrote:  
> > >
> > > A recent commit removed the incorrect use of phys_to_dma from this
> > > driver, but failed to remove the dma-direct.h include, so do that
> > > now.
> > >
> > > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > > ---
> > >  drivers/mtd/nand/raw/qcom_nandc.c | 1 -
> > >  include/linux/dma-mapping.h       | 6 ++++++
> > >  2 files changed, 6 insertions(+), 1 deletion(-)  
> > 
> > Hmm, the diffstat does not match the diff itself.  
> 
> Tha's because it had an accidental hunk in my tree I removed when
> sending.  I think you can trust the diff, but if you really want
> I can resend.

Applied to nand/next.

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-04 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27  8:59 [PATCH] mtd: rawnand: qcom: don't include dma-direct.h Christoph Hellwig
2018-08-27  9:51 ` Richard Weinberger
2018-08-27 12:31   ` Christoph Hellwig
2018-09-04 21:59     ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).