From mboxrd@z Thu Jan 1 00:00:00 1970 From: Santosh Shilimkar Subject: [PATCH v2 0/7] ARM: dma: Support dma-ranges and dma-coherent Date: Thu, 27 Feb 2014 16:17:45 -0500 Message-ID: <1393535872-20915-1-git-send-email-santosh.shilimkar@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: arnd@arndb.de Cc: devicetree@vger.kernel.org, Grygorii Strashko , Russell King , Tony Lindgren , linus.walleij@linaro.org, magnus.damm@gmail.com, Olof Johansson , robh+dt@kernel.org, Santosh Shilimkar , Greg Ungerer , grant.likely@linaro.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org Following the RFC [1], [2] comments, suggestions and some IRC discussion with Arnd Bergmann, here is the refreshed series. Attempt is to use dma-ranges and dma-coherent properties to setup the dma for ARM platforms. Platforms needing more funky stuff than the generic ones can use per platform device callbacks. Differnt buses like PCIE dma parsing still needs to be addressed though. Cc: Russell King Cc: Greg Ungerer Cc: Tony Lindgren Cc: Arnd Bergmann Cc: Olof Johansson CC: Grygorii Strashko Cc: Magnus Damm Cc: Linus Walleij Grygorii Strashko (5): ARM: mm: Introduce archdata.dma_pfn_offset ARM: mm: Remove unsed dma_to_virt() dma: of: introduce of_dma_get_range() helper ARM: of: introduce common routine for DMA configuration ARM: dts: keystone: Use dma-ranges property Santosh Shilimkar (2): dma: of: introduce of_dma_is_coherent() helper ARM: dts: keystone: Udate USB node for dma properties arch/arm/boot/dts/keystone.dtsi | 3 + arch/arm/include/asm/device.h | 1 + arch/arm/include/asm/dma-mapping.h | 25 +++---- arch/arm/include/asm/prom.h | 3 + arch/arm/kernel/devtree.c | 61 +++++++++++++++ arch/arm/mach-iop13xx/include/mach/memory.h | 11 --- arch/arm/mach-ks8695/include/mach/memory.h | 2 - arch/arm/mach-omap1/include/mach/memory.h | 4 - drivers/dma/of-dma.c | 108 +++++++++++++++++++++++++++ drivers/of/platform.c | 5 +- include/linux/of.h | 2 +- include/linux/of_dma.h | 13 ++++ 12 files changed, 205 insertions(+), 33 deletions(-) Regards, Santosh [1] http://www.spinics.net/lists/arm-kernel/msg304555.html [2] http://www.spinics.net/lists/arm-kernel/msg310562.html -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh.shilimkar@ti.com (Santosh Shilimkar) Date: Thu, 27 Feb 2014 16:17:45 -0500 Subject: [PATCH v2 0/7] ARM: dma: Support dma-ranges and dma-coherent Message-ID: <1393535872-20915-1-git-send-email-santosh.shilimkar@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Following the RFC [1], [2] comments, suggestions and some IRC discussion with Arnd Bergmann, here is the refreshed series. Attempt is to use dma-ranges and dma-coherent properties to setup the dma for ARM platforms. Platforms needing more funky stuff than the generic ones can use per platform device callbacks. Differnt buses like PCIE dma parsing still needs to be addressed though. Cc: Russell King Cc: Greg Ungerer Cc: Tony Lindgren Cc: Arnd Bergmann Cc: Olof Johansson CC: Grygorii Strashko Cc: Magnus Damm Cc: Linus Walleij Grygorii Strashko (5): ARM: mm: Introduce archdata.dma_pfn_offset ARM: mm: Remove unsed dma_to_virt() dma: of: introduce of_dma_get_range() helper ARM: of: introduce common routine for DMA configuration ARM: dts: keystone: Use dma-ranges property Santosh Shilimkar (2): dma: of: introduce of_dma_is_coherent() helper ARM: dts: keystone: Udate USB node for dma properties arch/arm/boot/dts/keystone.dtsi | 3 + arch/arm/include/asm/device.h | 1 + arch/arm/include/asm/dma-mapping.h | 25 +++---- arch/arm/include/asm/prom.h | 3 + arch/arm/kernel/devtree.c | 61 +++++++++++++++ arch/arm/mach-iop13xx/include/mach/memory.h | 11 --- arch/arm/mach-ks8695/include/mach/memory.h | 2 - arch/arm/mach-omap1/include/mach/memory.h | 4 - drivers/dma/of-dma.c | 108 +++++++++++++++++++++++++++ drivers/of/platform.c | 5 +- include/linux/of.h | 2 +- include/linux/of_dma.h | 13 ++++ 12 files changed, 205 insertions(+), 33 deletions(-) Regards, Santosh [1] http://www.spinics.net/lists/arm-kernel/msg304555.html [2] http://www.spinics.net/lists/arm-kernel/msg310562.html -- 1.7.9.5