[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1394097598-17622-1-git-send-email-santosh.shilimkar@ti.com>
Date: Thu, 6 Mar 2014 17:19:51 +0800
From: Santosh Shilimkar <santosh.shilimkar@...com>
To: <linux-kernel@...r.kernel.org>
CC: <linux-arm-kernel@...ts.infradead.org>,
<devicetree@...r.kernel.org>,
Santosh Shilimkar <santosh.shilimkar@...com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Russell King <linux@....linux.org.uk>,
Arnd Bergmann <arnd@...db.de>, Olof Johansson <olof@...om.net>,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Catalin Marinas <catalin.marinas@....com>,
Linus Walleij <linus.walleij@...aro.org>,
Grygorii Strashko <grygorii.strashko@...com>
Subject: [PATCH 0/7] of: setup dma parameters using dma-ranges and dma-coherent
Based on comments from [1] discussion, it seems there is a need to
have a generic support to configure dma device parameters.
Series introduces support for setting up dma parameters based on
device tree properties like 'dma-ranges' and 'dma-coherent'.
The 'dma-ranges' helps to take care of few DMAable system memory restrictions
by use of dma_pfn_offset which we maintain now per device. Arch code then
uses it for dma address translations for such cases. We also setup
dma_mask accordingly during the device creation process.
The 'dma-coherent' property is used to setup coherent dma_ops. Arches
which are always coherent can make use of ARCH_IS_DMA_COHERENT to setup
coherent dma_ops always irrespective of 'dma-coherent' property.
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Russell King <linux@....linux.org.uk>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Olof Johansson <olof@...om.net>
Cc: Grant Likely <grant.likely@...aro.org>
Cc: Rob Herring <robh+dt@...nel.org>
Cc: Catalin Marinas <catalin.marinas@....com>
Cc: Linus Walleij <linus.walleij@...aro.org>
Cc: Grygorii Strashko <grygorii.strashko@...com>
Grygorii Strashko (3):
of: introduce of_dma_get_range() helper
of: configure the platform device dma_mask and dma_pfn_offset
ARM: dma: Use dma_pfn_offset for dma address translation
Santosh Shilimkar (4):
device: introduce per device dma_pfn_offset
of: introduce of_dma_is_coherent() helper
of: Add set_arch_dma_coherent_ops() and setup coherent dma_ops
ARM: dma: implement set_arch_dma_coherent_ops()
arch/arm/include/asm/dma-mapping.h | 24 ++++-
drivers/of/platform.c | 196 +++++++++++++++++++++++++++++++++++-
include/linux/device.h | 2 +
include/linux/dma-mapping.h | 7 ++
include/linux/of_platform.h | 14 +++
5 files changed, 236 insertions(+), 7 deletions(-)
Regards,
Santosh
[1] http://www.spinics.net/lists/arm-kernel/msg311678.html
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists