[PATCH -mm 0/6] remove unnecessary sync_single_range_* in dma_map_ops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Tuesday, April 27, 2010 - 5:25 am

This patchset removes useless sync_single_range_for_cpu and
sync_single_range_for_device hooks in dma_map_ops. These hooks were
for dma_sync_single_range_* DMA API, however, the API became obsolete
(the description in DMA API docs was removed too). Architecutres
should use sync_single_for_cpu and sync_single_for_device hooks
instead (as DMA API docs say, they need to support a partial sync).

We could remove dma_sync_single_range_* DMA API completely (no user in
-mm) but the API had been until 2.6.34-rc so I guess that it might be
better to leave it alone for some time.

The first patch is a bug fix and might be 2.6.34-rc material however
the API is not so popular (only net/b44.c uses) and we are already in
-rc5. I guess that it would be fine to merge it in the next merge
window.

=
 arch/ia64/kernel/pci-swiotlb.c           |    2 -
 arch/powerpc/kernel/dma-swiotlb.c        |    4 +-
 arch/powerpc/kernel/dma.c                |   12 +++++-----
 arch/x86/kernel/pci-swiotlb.c            |    2 -
 include/asm-generic/dma-mapping-common.h |   20 +-----------------
 include/linux/dma-mapping.h              |   10 ---------
 include/linux/swiotlb.h                  |   10 ---------
 lib/swiotlb.c                            |   31 ------------------------------
 8 files changed, 10 insertions(+), 81 deletions(-)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm 0/6] remove unnecessary sync_single_range_* in ..., FUJITA Tomonori, (Tue Apr 27, 5:25 am)
[PATCH -mm 1/6] dma-mapping: fix dma_sync_single_range_*, FUJITA Tomonori, (Tue Apr 27, 5:25 am)
Re: [LKML] [PATCH -mm 0/6] remove unnecessary sync_single_ ..., Konrad Rzeszutek Wilk, (Tue Apr 27, 10:07 am)