public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org,
	akpm@linux-foundation.org, x86@kernel.org,
	Richard Henderson <rth@twiddle.net>,
	Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
	Matt Turner <mattst88@gmail.com>,
	Russell King <linux@arm.linux.org.uk>,
	Tony Luck <tony.luck@intel.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	Kyle McMartin <kyle@mcmartin.ca>, Helge Deller <deller@gmx.de>,
	James Bottomley <James.Bottomley@suse.de>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Paul Mundt <lethal@linux-sh.org>,
	"David S. Miller" <davem@davemloft.net>,
	Chris Zankel <chris@zankel.net>, Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2 -mm 01/14] adds include/linux/pci-dma.h
Date: Fri, 12 Feb 2010 15:04:41 +0000	[thread overview]
Message-ID: <2892.1265987081@redhat.com> (raw)
In-Reply-To: <1265765687-14121-2-git-send-email-fujita.tomonori@lab.ntt.co.jp>

FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:

> This patch adds include/linux/pci-dma.h that defines the pci_unmap
> state API:
> 
> DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
> DECLARE_PCI_UNMAP_LEN(LEN_NAME)
> pci_unmap_addr(PTR, ADDR_NAME)
> pci_unmap_addr_set(PTR, ADDR_NAME, VAL)
> pci_unmap_len(PTR, LEN_NAME)
> pci_unmap_len_set(PTR, LEN_NAME, VAL)
> 
> This enables us to remove lots of the duplication in architecture
> implementations since there are only two ways to define the API.
> 
> If architectures define CONFIG_NEED_DMA_MAP_STATE, they get the real
> definition of pci_unmap state API. If not, they get the noop
> definition.
> 
> In the long term, it's better to replace the API with the generic
> device model API such as DECLARE_DMA_UNMAP_ADDR. We can map the API to
> the generic one (like dma-mapping-compat.h does). This patch also
> makes the migration process easier. We can remove this file after the
> migration.
> 
> It might be simpler to add the API to include/linux/pci.h but looks
> it's already too large. We'll remove pci-dma.h after finishing moving
> to the generic device model. So I put the API to a separate file.
> 
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>

Acked-by: David Howells <dhowells@redhat.com>

  parent reply	other threads:[~2010-02-12 15:10 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10  1:34 [PATCH v2 -mm 00/14] adds include/linux/pci-dma.h FUJITA Tomonori
2010-02-10  1:34 ` [PATCH v2 -mm 01/14] " FUJITA Tomonori
2010-02-10  6:57   ` Arnd Bergmann
2010-02-12 14:51   ` Russell King - ARM Linux
2010-02-12 15:04   ` David Howells [this message]
2010-02-10  1:34 ` [PATCH v2 -mm 02/14] x86: use include/linux/pci-dma.h FUJITA Tomonori
2010-02-10  1:34 ` [PATCH v2 -mm 03/14] alpha: " FUJITA Tomonori
2010-02-11 18:49   ` Matt Turner
2010-02-10  1:34 ` [PATCH v2 -mm 04/14] arm: " FUJITA Tomonori
2010-02-12 14:51   ` Russell King - ARM Linux
2010-02-10  1:34 ` [PATCH v2 -mm 05/14] frv: " FUJITA Tomonori
2010-02-10 11:10   ` David Howells
2010-02-10  1:34 ` [PATCH v2 -mm 06/14] ia64: " FUJITA Tomonori
2010-02-10  1:34 ` [PATCH v2 -mm 07/14] mips: " FUJITA Tomonori
2010-02-10  1:34 ` [PATCH v2 -mm 08/14] parisc: " FUJITA Tomonori
2010-02-12 15:00   ` Kyle McMartin
2010-02-10  1:34 ` [PATCH v2 -mm 09/14] powerpc: " FUJITA Tomonori
2010-02-10  1:34 ` [PATCH v2 -mm 10/14] sh: " FUJITA Tomonori
2010-02-10  8:49   ` Paul Mundt
2010-02-10  1:34 ` [PATCH v2 -mm 11/14] sparc: " FUJITA Tomonori
2010-02-10  6:55   ` David Miller
2010-02-10  1:34 ` [PATCH v2 -mm 12/14] xtensa: " FUJITA Tomonori
2010-02-10  1:34 ` [PATCH v2 -mm 13/14] cris: " FUJITA Tomonori
2010-02-10  6:10   ` Mikael Starvik
2010-02-10  1:34 ` [PATCH v2 -mm 14/14] add linux/pci-dma.h to linux/pci.h FUJITA Tomonori
2010-02-10  6:58   ` Arnd Bergmann

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=2892.1265987081@redhat.com \
    --to=dhowells@redhat.com \
    --cc=James.Bottomley@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=benh@kernel.crashing.org \
    --cc=chris@zankel.net \
    --cc=davem@davemloft.net \
    --cc=deller@gmx.de \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=ink@jurassic.park.msu.ru \
    --cc=kyle@mcmartin.ca \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mattst88@gmail.com \
    --cc=ralf@linux-mips.org \
    --cc=rth@twiddle.net \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    /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