From patchwork Thu Mar 6 09:19:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shilimkar X-Patchwork-Id: 25790 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 89AA2203C3 for ; Thu, 6 Mar 2014 09:21:53 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id lf12sf5434490vcb.9 for ; Thu, 06 Mar 2014 01:21:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=wJx7jc5a2OIBUaJ2RcXrqNLz+RMWEgEuwyiqeT/IBx4=; b=UymG2Nc32JPJiC1Y96+BhGdvFdVWByh4tfDkXLkAhGGJ0WkpiFrHNPvhkVAiEeO2IP RARpdTDZYWONtYFkYh8jUD+xEG54Htf0PkZHIbBS6QnrSDzzPjnfI8vaEF9P9lVxBzi9 ta6932XY4N5SKuldWfVRm/9FP6WSafhSf+8I3+yqs0RQb2tfczR5/jKZPIp1DbvqRf9Z WFZDZyOI6SqKBAh+OOLDl9xNDi1euNcPBnSFnZLMKCSXh47i/wp58sbf7mBv/GcibUAq fmhSWdJ2fQIqiUVIpkLzl6eKl+GtAougf8EtjPdGxQjjuMOyW71PQnmo9i7wUbEeyrlY GzIg== X-Gm-Message-State: ALoCoQnfs12C6UlwJFAv2mhn7YQSxA8h8yl1HAf/iBV7rCI5vw7vrBOV28/S6uf40Ua5tUu2P9K2 X-Received: by 10.58.170.6 with SMTP id ai6mr2756361vec.7.1394097713329; Thu, 06 Mar 2014 01:21:53 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.166 with SMTP id 35ls652620qgf.3.gmail; Thu, 06 Mar 2014 01:21:53 -0800 (PST) X-Received: by 10.221.29.137 with SMTP id ry9mr4211725vcb.6.1394097713207; Thu, 06 Mar 2014 01:21:53 -0800 (PST) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id yv5si968934veb.102.2014.03.06.01.21.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 01:21:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so2307238veb.18 for ; Thu, 06 Mar 2014 01:21:53 -0800 (PST) X-Received: by 10.52.126.107 with SMTP id mx11mr123014vdb.41.1394097713135; Thu, 06 Mar 2014 01:21:53 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp25138vck; Thu, 6 Mar 2014 01:21:52 -0800 (PST) X-Received: by 10.68.134.198 with SMTP id pm6mr13056881pbb.9.1394097712147; Thu, 06 Mar 2014 01:21:52 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xz2si4501789pbb.209.2014.03.06.01.21.51; Thu, 06 Mar 2014 01:21:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752859AbaCFJVo (ORCPT + 26 others); Thu, 6 Mar 2014 04:21:44 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:46229 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbaCFJVT (ORCPT ); Thu, 6 Mar 2014 04:21:19 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s269Kj2D025028; Thu, 6 Mar 2014 03:20:45 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s269KjVG003405; Thu, 6 Mar 2014 03:20:45 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Thu, 6 Mar 2014 03:20:45 -0600 Received: from ula0393909.itg.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s269K8N5031770; Thu, 6 Mar 2014 03:20:41 -0600 From: Santosh Shilimkar To: CC: , , Santosh Shilimkar , Greg Kroah-Hartman , Russell King , Arnd Bergmann , Olof Johansson , Grant Likely , Rob Herring , Catalin Marinas , Linus Walleij , Grygorii Strashko Subject: [PATCH 7/7] ARM: dma: implement set_arch_dma_coherent_ops() Date: Thu, 6 Mar 2014 17:19:58 +0800 Message-ID: <1394097598-17622-8-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394097598-17622-1-git-send-email-santosh.shilimkar@ti.com> References: <1394097598-17622-1-git-send-email-santosh.shilimkar@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: santosh.shilimkar@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Implement the set_arch_dma_coherent_ops() for ARM architecture. Cc: Greg Kroah-Hartman Cc: Russell King Cc: Arnd Bergmann Cc: Olof Johansson Cc: Grant Likely Cc: Rob Herring Cc: Catalin Marinas Cc: Linus Walleij Signed-off-by: Grygorii Strashko Signed-off-by: Santosh Shilimkar --- arch/arm/include/asm/dma-mapping.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index 8c12149..765c9e7 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -114,6 +114,13 @@ static inline unsigned long dma_max_pfn(struct device *dev) } #define dma_max_pfn(dev) dma_max_pfn(dev) +static inline int set_arch_dma_coherent_ops(struct device *dev) +{ + set_dma_ops(dev, &arm_coherent_dma_ops); + return 0; +} +#define set_arch_dma_coherent_ops(dev) set_arch_dma_coherent_ops(dev) + static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { unsigned int offset = paddr & ~PAGE_MASK;