From patchwork Thu May 22 16:47:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 30639 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C35C720671 for ; Thu, 22 May 2014 16:49:31 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id uo5sf11939173pbc.8 for ; Thu, 22 May 2014 09:49:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=5rsOKq3PuSPme/iuqtnv4IvzwhxstbRGrv8CpI5/9yw=; b=IEn4JVxW7TDWomynTHEh0ap8OvgBZ0eUxaGdwmMb48TJltNLG2ZJIWoGmTw8mS8owO HpjCssqvNj/euc+7mwmBIi9zOhAXdCOpLIZxV60QdGBpNjhAZQ70dzHh7zk+dqKzEZ1T 2tpB0mzqzYWAYisx3eHJtKuT4OutXyeRbaWTy53sJuTBth8jsSO4mFqv+l9ELPg4+FBP G30jnEVG/qYYdyTYCGwqHGzHyhixWAbg3rNWvdFm/QyMKvFe4Z51ok8On1uBpCQHTT0e m9ys2JfHQOhYjwKmgELQW1nu5TAHA8eP8pqE+LDsvK2MYs4A8VIYB8M4CFMjdduaU9dl YbDg== X-Gm-Message-State: ALoCoQmE7nsH+OGGZJUR0GSgDOebIKAYqlEkAEeyqQHpfGpqg8hWkEcksBdt1WpBnUNVC0GmEdCK X-Received: by 10.66.142.9 with SMTP id rs9mr7223988pab.47.1400777370748; Thu, 22 May 2014 09:49:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.100 with SMTP id o91ls1320599qgd.30.gmail; Thu, 22 May 2014 09:49:30 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr17017745vcm.11.1400777370583; Thu, 22 May 2014 09:49:30 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id z1si212108vet.30.2014.05.22.09.49.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 09:49:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id db12so4737350veb.39 for ; Thu, 22 May 2014 09:49:30 -0700 (PDT) X-Received: by 10.220.7.131 with SMTP id d3mr2004590vcd.45.1400777370508; Thu, 22 May 2014 09:49:30 -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 ib8csp215113vcb; Thu, 22 May 2014 09:49:30 -0700 (PDT) X-Received: by 10.66.158.132 with SMTP id wu4mr69959427pab.66.1400777369610; Thu, 22 May 2014 09:49:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uv1si454521pbc.53.2014.05.22.09.49.23 for ; Thu, 22 May 2014 09:49:23 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1753196AbaEVQtI (ORCPT + 27 others); Thu, 22 May 2014 12:49:08 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:48917 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753113AbaEVQtE (ORCPT ); Thu, 22 May 2014 12:49:04 -0400 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.25]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s4MGlZwo028186; Thu, 22 May 2014 17:47:35 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 9072B1AE340E; Thu, 22 May 2014 17:47:34 +0100 (BST) From: Will Deacon To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, monstr@monstr.eu, dhowells@redhat.com, broonie@linaro.org, benh@kernel.crashing.org, peterz@infradead.org, paulmck@linux.vnet.ibm.com, Will Deacon , Mikael Starvik Subject: [PATCH v2 07/18] cris: io: implement dummy relaxed accessor macros for writes Date: Thu, 22 May 2014 17:47:19 +0100 Message-Id: <1400777250-17335-8-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1400777250-17335-1-git-send-email-will.deacon@arm.com> References: <1400777250-17335-1-git-send-email-will.deacon@arm.com> 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: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) 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: , write{b,w,l}_relaxed are implemented by some architectures in order to permit memory-mapped I/O accesses with weaker barrier semantics than the non-relaxed variants. This patch adds dummy macros for the write accessors to Cris, in the same vein as the dummy definitions for the relaxed read accessors. Cc: Mikael Starvik Acked-by: Jesper Nilsson Signed-off-by: Will Deacon --- arch/cris/include/asm/io.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/cris/include/asm/io.h b/arch/cris/include/asm/io.h index e59dba12ce94..752a3f45df60 100644 --- a/arch/cris/include/asm/io.h +++ b/arch/cris/include/asm/io.h @@ -112,6 +112,9 @@ static inline void writel(unsigned int b, volatile void __iomem *addr) else *(volatile unsigned int __force *) addr = b; } +#define writeb_relaxed(b, addr) writeb(b, addr) +#define writew_relaxed(b, addr) writew(b, addr) +#define writel_relaxed(b, addr) writel(b, addr) #define __raw_writeb writeb #define __raw_writew writew #define __raw_writel writel