From patchwork Wed Jul 25 06:29:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hideki EIRAKU X-Patchwork-Id: 1235831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id DF9EE3FD4F for ; Wed, 25 Jul 2012 06:43:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1StvEw-0005wM-F1; Wed, 25 Jul 2012 06:38:35 +0000 Received: from mail-yx0-f177.google.com ([209.85.213.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Stv6y-00059M-6N for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 06:30:22 +0000 Received: by yenr9 with SMTP id r9so377123yen.36 for ; Tue, 24 Jul 2012 23:30:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=3iF84tx8P8AjjQ+GjEd0Rn/PkqMSGRL4D/ROL0mgob4=; b=PLxbfNYJye/QttOgU3Xm/rBxBssOBTSnkKpxuq0CONIBGP1JyWIW0ywQxo32IQjw3K EOjSVq4GXJFyffMEoAcY8m4PjzkVXB2+S8NJdtjZdbJImhCWVbujV/7HWliJDRyUPPK0 fgPQQXr9uxPPGg+kHOLl2mFlRBgZv1aAmy6ufS8fUJzrhyKr9cmsN6qMV7SEtoJKNgdx si5RUgoX/QkyKADrc1jktXszhlR0zbuKWyp7i3iOQT0fV6BpxM2k0WnxREayBuWAZ4OM XxiaptaDk0cM5SWwmsH5dcUYJKfw9ld/66mkQH+9cvfF5KEFMtFOwGHq08Nq1cxfQTo0 n+Fg== Received: by 10.66.87.70 with SMTP id v6mr10316759paz.14.1343197816223; Tue, 24 Jul 2012 23:30:16 -0700 (PDT) Received: from localhost.localdomain ([219.106.231.132]) by mx.google.com with ESMTPS id jz4sm13740730pbc.17.2012.07.24.23.30.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 23:30:15 -0700 (PDT) From: Hideki EIRAKU To: Russell King , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Mauro Carvalho Chehab , Florian Tobias Schandinat Subject: [PATCH 1/3] ARM: dma-mapping: define ARCH_HAS_DMA_MMAP_COHERENT Date: Wed, 25 Jul 2012 15:29:22 +0900 Message-Id: <1343197764-13659-2-git-send-email-hdk@igel.co.jp> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1343197764-13659-1-git-send-email-hdk@igel.co.jp> References: <1343197764-13659-1-git-send-email-hdk@igel.co.jp> X-Gm-Message-State: ALoCoQloVyZ3zfjBpj+3DOgMzyklpvUMRFNwNmOruIzrD+QkLR/e1pXJYicplapaXL8Osietho1r X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Katsuya MATSUBARA , linux-fbdev@vger.kernel.org, Hideki EIRAKU , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org ARCH_HAS_DMA_MMAP_COHERENT indicates that there is dma_mmap_coherent() API in this architecture. The name is already defined in PowerPC. Signed-off-by: Hideki EIRAKU --- arch/arm/include/asm/dma-mapping.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index bbef15d..f41cd30 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -187,6 +187,7 @@ extern int arm_dma_mmap(struct device *dev, struct vm_area_struct *vma, struct dma_attrs *attrs); #define dma_mmap_coherent(d, v, c, h, s) dma_mmap_attrs(d, v, c, h, s, NULL) +#define ARCH_HAS_DMA_MMAP_COHERENT static inline int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr,