From: "Yang, Shunyong" <shunyong.yang@hxt-semitech.com>
To: "hch@infradead.org" <hch@infradead.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"Zheng, Joey" <yu.zheng@hxt-semitech.com>,
"bhelgaas@google.com" <bhelgaas@google.com>
Subject: Re: [PATCH] PCI: Unify pci and normal dma direction definition
Date: Wed, 18 Jul 2018 00:45:24 +0000 [thread overview]
Message-ID: <1531874719.3330.2.camel@hxt-semitech.com> (raw)
In-Reply-To: <20180717140335.GA23500@infradead.org>
Hi, Christoph,
I will send a v2 according to your comments.
Thanks.
Shunyong.
On Tue, 2018-07-17 at 07:03 -0700, Christoph Hellwig wrote:
> >
> > diff --git a/include/linux/dma-direction.h b/include/linux/dma-
> > direction.h
> > index 3649a031893a..9d52716e9218 100644
> > --- a/include/linux/dma-direction.h
> > +++ b/include/linux/dma-direction.h
> > @@ -2,7 +2,7 @@
> > #ifndef _LINUX_DMA_DIRECTION_H
> > #define _LINUX_DMA_DIRECTION_H
> > /*
> > - * These definitions mirror those in pci.h, so they can be used
> > + * These definitions mirror those in pci-dma-compat.h, so they can
> > be used
> > * interchangeably with their PCI_ counterparts.
> > */
> I think we can just drop this comment anymore.
>
> >
> > +#define PCI_DMA_BIDIRECTIONAL (DMA_BIDIRECTIONAL)
> > +#define PCI_DMA_TODEVICE (DMA_TO_DEVICE)
> > +#define PCI_DMA_FROMDEVICE (DMA_FROM_DEVICE)
> > +#define PCI_DMA_NONE (DMA_NONE)
> No need for the braces.
prev parent reply other threads:[~2018-07-18 0:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 6:37 Shunyong Yang
2018-07-17 14:03 ` Christoph Hellwig
2018-07-18 0:45 ` Yang, Shunyong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1531874719.3330.2.camel@hxt-semitech.com \
--to=shunyong.yang@hxt-semitech.com \
--cc=bhelgaas@google.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yu.zheng@hxt-semitech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome