From patchwork Thu May 22 16:47:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 30638 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D2FCA20671 for ; Thu, 22 May 2014 16:48:44 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf16318990obc.8 for ; Thu, 22 May 2014 09:48:44 -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=OgZmzZLXgagQpdFcYkY0TOsegMVTKURxVx9HAaemRcE=; b=j8x7HrG6vFU+QMQHkNTTBJVFy9NqWgN9GsaZUS4r5ANXTH/TmI1ci49OhdPwIVTtBr RJVNznEFROHXyAXujqg5lxR5yvAtc/qYRWQhCMrBQDee/pRMPwjAIr30vjxA3UxiPhPl VUtvsYocPluWNyK6tK3U2AHhYS2iV9JTBq9nicxqZJHqQF9082UBy0gW2PzrDtptCKB1 rkDDpkOf3eCbRQYq6/15z942v2aNznUMc5BsFllHL14QmHONxhYJvBMzHHVLSZ6dBFXB cCthOdyHnCQG1ZRdS/rCF6L//l646RKeH4nFr/0xRmDB9QIg8p+vgyQN+Fji9EsLmB8h P9zA== X-Gm-Message-State: ALoCoQlPTAdLgtm3Mw1YfuitXm55+R7B8K7kDWZhchNdI1gvsgBTkoSw3rUvYitljVh4ve2mpXla X-Received: by 10.182.51.228 with SMTP id n4mr26536802obo.28.1400777324475; Thu, 22 May 2014 09:48:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.200 with SMTP id 66ls1372836qgf.24.gmail; Thu, 22 May 2014 09:48:44 -0700 (PDT) X-Received: by 10.58.246.132 with SMTP id xw4mr35808218vec.2.1400777324356; Thu, 22 May 2014 09:48:44 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id iy12si202625vec.61.2014.05.22.09.48.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 09:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id hy4so4796171vcb.11 for ; Thu, 22 May 2014 09:48:44 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr17096693vcg.16.1400777324284; Thu, 22 May 2014 09:48:44 -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 ib8csp215048vcb; Thu, 22 May 2014 09:48:43 -0700 (PDT) X-Received: by 10.66.250.109 with SMTP id zb13mr16044669pac.97.1400777323265; Thu, 22 May 2014 09:48:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id td10si460481pbc.38.2014.05.22.09.48.42; Thu, 22 May 2014 09:48:42 -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 S1753050AbaEVQsa (ORCPT + 27 others); Thu, 22 May 2014 12:48:30 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:48896 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981AbaEVQs1 (ORCPT ); Thu, 22 May 2014 12:48:27 -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 s4MGlYwq028182; Thu, 22 May 2014 17:47:35 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 2000D1AE3430; Thu, 22 May 2014 17:47:35 +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 Subject: [PATCH v2 15/18] tile: io: implement dummy relaxed accessor macros for writes Date: Thu, 22 May 2014 17:47:27 +0100 Message-Id: <1400777250-17335-16-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.220.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,q}_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 tile, in the same vein as the dummy definitions for the relaxed read accessors. Acked-by: Chris Metcalf Signed-off-by: Will Deacon --- arch/tile/include/asm/io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h index 9fe434969fab..d372641054d9 100644 --- a/arch/tile/include/asm/io.h +++ b/arch/tile/include/asm/io.h @@ -241,6 +241,10 @@ static inline void writeq(u64 val, unsigned long addr) #define readw_relaxed readw #define readl_relaxed readl #define readq_relaxed readq +#define writeb_relaxed writeb +#define writew_relaxed writew +#define writel_relaxed writel +#define writeq_relaxed writeq #define ioread8 readb #define ioread16 readw