[PATCH 5/5] dma-mapping: consolidate dma_set_mask

2015-08-17 Thread Christoph Hellwig
Almost everyone implements dma_set_mask the same way, although some time that's hidden in -set_dma_mask methods. This patch consolidates those into a common implementation that either calls -set_dma_mask if present or otherwise uses the default implementation. Some architectures used to only

Re: [PATCH 5/5] dma-mapping: consolidate dma_set_mask

2015-08-13 Thread Russell King - ARM Linux
On Thu, Aug 13, 2015 at 05:04:08PM +0200, Christoph Hellwig wrote: diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 1143c4d..260f52a 100644 --- a/arch/arm/common/dmabounce.c +++ b/arch/arm/common/dmabounce.c @@ -440,14 +440,6 @@ static void

[PATCH 5/5] dma-mapping: consolidate dma_set_mask

2015-08-13 Thread Christoph Hellwig
Almost everyone implements dma_set_mask the same way, although some time that's hidden in -set_dma_mask methods. Move this implementation to common code, including a callout to override the post-check action, and remove duplicate instaces in methods as well. Unfortunately some architectures

Re: [PATCH 5/5] dma-mapping: consolidate dma_set_mask

2015-08-13 Thread Christoph Hellwig
On Thu, Aug 13, 2015 at 04:25:05PM +0100, Russell King - ARM Linux wrote: On Thu, Aug 13, 2015 at 05:04:08PM +0200, Christoph Hellwig wrote: diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 1143c4d..260f52a 100644 --- a/arch/arm/common/dmabounce.c +++