public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip v2 0/5] add common functions for struct dma_map_ops
@ 2009-05-15  3:55 FUJITA Tomonori
  2009-05-15  3:55 ` [PATCH -tip 2/5] x86: use asm-generic/dma-mapping-common.h FUJITA Tomonori
  0 siblings, 1 reply; 6+ messages in thread
From: FUJITA Tomonori @ 2009-05-15  3:55 UTC (permalink / raw)
  To: linux-kernel
  Cc: mingo, tony.luck, linux-ia64, fujita.tomonori, arnd, joerg.roedel

We unified x86 and IA64's handling of multiple dma mapping operations
(struct dma_map_ops in linux/dma-mapping.h) so we can remove
duplication in their arch/include/asm/dma-mapping.h.

This patchset adds include/asm-generic/dma-mapping-common.h that
provides some generic dma mapping function definitions for the users
of struct dma_map_ops. This enables us to remove about 100 lines. This
also enables us to easily add CONFIG_DMA_API_DEBUG support, which only
x86 supports for now. The 4th patch adds CONFIG_DMA_API_DEBUG support
to IA64 by adding only 8 lines.

This is against tip/master since tip has some changes to
arch/x86/include/asm/dma-mapping.h.

The changes since the first version are

- fixed a bug that dma_attrs is not passed properly (thanks to Arnd
Bergmann).

- used a new name, dma-mapping-common.h, instead of dma-mapping.h
(suggested by Arnd Bergmann).

- added Joerg's Acked-by

=
 arch/ia64/Kconfig                        |    1 +
 arch/ia64/include/asm/dma-mapping.h      |  110 ++----------------
 arch/x86/Kconfig                         |    1 +
 arch/x86/include/asm/dma-mapping.h       |  174 +---------------------------
 include/asm-generic/dma-mapping-common.h |  190 ++++++++++++++++++++++++++++++
 lib/dma-debug.c                          |   82 ++++++++------
 6 files changed, 252 insertions(+), 306 deletions(-)




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

end of thread, other threads:[~2009-06-22 16:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20090620155605.GD12901@elte.hu>
     [not found] ` <20090622135717T.fujita.tomonori@lab.ntt.co.jp>
     [not found]   ` <1245650501.18751.0.camel@penberg-laptop>
     [not found]     ` <20090622203333U.fujita.tomonori@lab.ntt.co.jp>
     [not found]       ` <19f34abd0906220459w39271e29x99d578d0a49d593b@mail.gmail.com>
     [not found]         ` <19f34abd0906220543v64b5418di8b97d36214d093cc@mail.gmail.com>
     [not found]           ` <20090622124916.GA30553@elte.hu>
     [not found]             ` <1245676212.15580.68.camel@pc1117.cambridge.arm.com>
2009-06-22 13:22               ` [PATCH -tip 2/5] x86: use asm-generic/dma-mapping-common.h Pekka Enberg
2009-06-22 15:24                 ` Catalin Marinas
2009-06-22 16:13                   ` Pekka Enberg
2009-05-15  3:55 [PATCH -tip v2 0/5] add common functions for struct dma_map_ops FUJITA Tomonori
2009-05-15  3:55 ` [PATCH -tip 2/5] x86: use asm-generic/dma-mapping-common.h FUJITA Tomonori
2009-05-28  7:20   ` Andrew Morton
2009-05-28  7:44     ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox