Message ID | 1397917972-6293-7-git-send-email-santosh.shilimkar@ti.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBCL6PXF6UICBBXETZKNAKGQEEFHSWEA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6BBAE20553 for <linaro@patches.linaro.org>; Sat, 19 Apr 2014 14:36:13 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id lx4sf15979499iec.7 for <linaro@patches.linaro.org>; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) 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:subject:date:message-id :in-reply-to:references:mime-version:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=B+SX6M/vOLskuM5tPWQ/HFpeUT3jF3ml1RQ8OmvsUQ0=; b=EMXIG9KCoSxdv2VZVIbZzpY+3OZlTSOpidM3VDP/zBizIw57xKfeKYkvMEqCHYHI0G GoxlrJSicAJcrYBbskG9UJQK/fnDhCV34niWT4M2xT4Vg4xt+wj7O5eMAEYATAUmDAVL 25RMYLB2w6SVypC5NDR5yEuUQkCsqCECMRuun76IfE2UyDxigyKRxzSyUnSIz3UEr4ZW Wzz+QC9CBI4gJuQ1pASGkujgoHPync1liDBM4rIpzZi5Dmmon2+ReC1hj7aLOLAh4pb3 t5F768xgey95OvTB1cW7E1Ulr4E0GSLjn/f5wiR07u1+oak40WdGzu5mX93+p+nXF83/ xUYA== X-Gm-Message-State: ALoCoQkCqtqk8oDA+VHYVi7eaH9/be8XB4vUadwR//xEF2fVhzOAmwKtkgm0HHBT6TmjG9hm7kaq X-Received: by 10.182.45.131 with SMTP id n3mr13883068obm.20.1397918172852; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.8 with SMTP id j8ls1664549qge.45.gmail; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) X-Received: by 10.52.144.42 with SMTP id sj10mr16101871vdb.19.1397918172759; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id bf4si5441117vec.208.2014.04.19.07.36.12 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 19 Apr 2014 07:36:12 -0700 (PDT) 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 oy12so4963894veb.32 for <patchwork-forward@linaro.org>; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) X-Received: by 10.58.202.133 with SMTP id ki5mr19258754vec.19.1397918172637; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) 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.221.72 with SMTP id ib8csp182280vcb; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) X-Received: by 10.224.80.138 with SMTP id t10mr28316446qak.0.1397918172185; Sat, 19 Apr 2014 07:36:12 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id v19si13304829qgd.11.2014.04.19.07.36.12 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Apr 2014 07:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WbWLb-0007Or-Ox; Sat, 19 Apr 2014 14:34:27 +0000 Received: from comal.ext.ti.com ([198.47.26.152]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WbWLV-0007LT-KS for linux-arm-kernel@lists.infradead.org; Sat, 19 Apr 2014 14:34:22 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s3JEXpc6022384; Sat, 19 Apr 2014 09:33:51 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3JEXpsG012803; Sat, 19 Apr 2014 09:33:51 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Sat, 19 Apr 2014 09:33:51 -0500 Received: from ula0393909.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3JEXT34019097; Sat, 19 Apr 2014 09:33:50 -0500 From: Santosh Shilimkar <santosh.shilimkar@ti.com> To: <linux-kernel@vger.kernel.org> Subject: [PATCH v2 6/7] ARM: dma: implement set_arch_dma_coherent_ops() Date: Sat, 19 Apr 2014 10:32:51 -0400 Message-ID: <1397917972-6293-7-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397917972-6293-1-git-send-email-santosh.shilimkar@ti.com> References: <1397917972-6293-1-git-send-email-santosh.shilimkar@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140419_073421_765610_BA073F16 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.7 (-----) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-5.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [198.47.26.152 listed in list.dnswl.org] -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record Cc: devicetree@vger.kernel.org, Grygorii Strashko <grygorii.strashko@ti.com>, Russell King <linux@arm.linux.org.uk>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Linus Walleij <linus.walleij@linaro.org>, Grant Likely <grant.likely@linaro.org>, Rob Herring <robh+dt@kernel.org>, Santosh Shilimkar <santosh.shilimkar@ti.com>, Catalin Marinas <catalin.marinas@arm.com>, Olof Johansson <olof@lixom.net>, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
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;