From patchwork Thu Apr 24 15:30:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shilimkar X-Patchwork-Id: 28980 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B5D41206A5 for ; Thu, 24 Apr 2014 15:32:00 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id oz11sf9945353veb.9 for ; Thu, 24 Apr 2014 08:32:00 -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: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=S99k+wOaAIKEMxYyCdgqweVKz/M+SbTyr7GAg7CVlmY=; b=C+U0mvSRGmLwZMR+OE0Q6r2lmekyU5OcW9P16c+9fH26FC2+fKL6+cGeyEshKN+w7i 2+OjedK4ttrdodBeeQ+OxmR2DbNLQUJD0i6/YbiZ6b/O9Rn8p9lkLGfwuhVWkiy9oGmR aNRJ5OmM1bdSitJp5RhAv794Y17NbZgaAqm2GvkG4vbBQj00kJ90BwGTxXwcFGeWMJYj m/2SZ+iHSZ+YkbRlkzmZXnjLnkGZLQ+dDFrUeP15e15PGk1eCSHEJfVQsu5zcog0sj7l grcSItDmhGKL3KU2cvBZ4TmhdqdWpwGCtFyKmLMaU5akmeLkO73jPmhgignV9BlzmHPP X8TQ== X-Gm-Message-State: ALoCoQkeYqVZFDUpc2S6pKZ/ZlShkfTP1aj5c1zcKrhse1DXSbzvY+kGGK3qTWOp4lyTvweAgx7Y X-Received: by 10.58.59.104 with SMTP id y8mr1473154veq.18.1398353520411; Thu, 24 Apr 2014 08:32:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.67 with SMTP id g61ls1182313qgg.12.gmail; Thu, 24 Apr 2014 08:32:00 -0700 (PDT) X-Received: by 10.58.116.207 with SMTP id jy15mr87707veb.72.1398353520278; Thu, 24 Apr 2014 08:32:00 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ui2si999323vdc.190.2014.04.24.08.32.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Apr 2014 08:32:00 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so3122037veb.35 for ; Thu, 24 Apr 2014 08:32:00 -0700 (PDT) X-Received: by 10.58.88.8 with SMTP id bc8mr817443veb.39.1398353520194; Thu, 24 Apr 2014 08:32:00 -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 ib8csp25394vcb; Thu, 24 Apr 2014 08:31:59 -0700 (PDT) X-Received: by 10.68.136.226 with SMTP id qd2mr4399234pbb.72.1398353519255; Thu, 24 Apr 2014 08:31:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uc7si2899098pbc.346.2014.04.24.08.31.58; Thu, 24 Apr 2014 08:31:58 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932224AbaDXPbp (ORCPT + 9 others); Thu, 24 Apr 2014 11:31:45 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:49532 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758197AbaDXPbj (ORCPT ); Thu, 24 Apr 2014 11:31:39 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s3OFV4jL032605; Thu, 24 Apr 2014 10:31:04 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3OFV4IJ003312; Thu, 24 Apr 2014 10:31:04 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Thu, 24 Apr 2014 10:31:03 -0500 Received: from ula0393909.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3OFU9MC019851; Thu, 24 Apr 2014 10:31:03 -0500 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 v3 6/7] ARM: dma: implement set_arch_dma_coherent_ops() Date: Thu, 24 Apr 2014 11:30:06 -0400 Message-ID: <1398353407-2345-7-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398353407-2345-1-git-send-email-santosh.shilimkar@ti.com> References: <1398353407-2345-1-git-send-email-santosh.shilimkar@ti.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 Reviewed-by: Rob Herring --- 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 424fda9..1965cd8 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -118,6 +118,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;