From patchwork Thu May 22 16:47:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 30651 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D0BD320671 for ; Thu, 22 May 2014 16:55:52 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id 29sf13963030yhl.2 for ; Thu, 22 May 2014 09:55:52 -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=HUqKpNNUIpmQu/FtxGBnv94tyYqRvTFP6ZDFP+rQwpc=; b=OjrqoiihC3oDWCCd0Dl0JmA5+/hyA+SSAVEScBCRh3IZcjHpudDvxbkTH2rKi4vcMN QPNWpQYVA60y/f0fcXdkGWpmUlTxXArhViZLDRaxLhhL/z8AOcW2gUH+9qbHbphoTo6C Gi8TB89Nom1J9qj6f8RpLUfY4YtvOGh/mKM6oLByVLmlokQCJsy7Z8GzXIi7J5tm+I3T b4l9BQZUPzW7YJ7YCjOQlqpyMU3FKhIInMSTOHqYdXWVfinlvGJxaE1RKzbzjeGbz+1e laZ0RmVsMXIvxFZNCGeTXS16LBktqzUwqTRpbIWyvyoaSZBoXdb1JzBnVOvXwsvW6qBD stLw== X-Gm-Message-State: ALoCoQljuzO4Yy8DVxDUeB3fG8RqsmnifvbKlOfyuAlViZd955OHTMbxoYDUDoxdVMje1ejqC84h X-Received: by 10.58.30.78 with SMTP id q14mr25673442veh.10.1400777752562; Thu, 22 May 2014 09:55:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.1 with SMTP id p1ls1416267qga.97.gmail; Thu, 22 May 2014 09:55:52 -0700 (PDT) X-Received: by 10.58.161.101 with SMTP id xr5mr2850821veb.36.1400777752411; Thu, 22 May 2014 09:55:52 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id fr1si207651vdc.68.2014.05.22.09.55.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 09:55:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id hy4so1412877vcb.12 for ; Thu, 22 May 2014 09:55:52 -0700 (PDT) X-Received: by 10.52.139.101 with SMTP id qx5mr14342895vdb.17.1400777752338; Thu, 22 May 2014 09:55:52 -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 ib8csp215593vcb; Thu, 22 May 2014 09:55:51 -0700 (PDT) X-Received: by 10.66.122.101 with SMTP id lr5mr69304880pab.130.1400777751598; Thu, 22 May 2014 09:55:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yj9si439432pac.146.2014.05.22.09.55.50; Thu, 22 May 2014 09:55:50 -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 S1753169AbaEVQzn (ORCPT + 27 others); Thu, 22 May 2014 12:55:43 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:48870 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752816AbaEVQsQ (ORCPT ); Thu, 22 May 2014 12:48:16 -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 s4MGlZwo028194; Thu, 22 May 2014 17:47:35 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id D18DD1AE3414; 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 Subject: [PATCH v2 11/18] mn10300: io: implement dummy relaxed accessor macros for writes Date: Thu, 22 May 2014 17:47:23 +0100 Message-Id: <1400777250-17335-12-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.181 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 mn10300, in the same vein as the dummy definitions for the relaxed read accessors. Cc: David Howells Signed-off-by: Will Deacon --- arch/mn10300/include/asm/io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mn10300/include/asm/io.h b/arch/mn10300/include/asm/io.h index e6ed0d897ccc..897ba3c12b32 100644 --- a/arch/mn10300/include/asm/io.h +++ b/arch/mn10300/include/asm/io.h @@ -67,6 +67,10 @@ static inline void writel(u32 b, volatile void __iomem *addr) #define __raw_writew writew #define __raw_writel writel +#define writeb_relaxed writeb +#define writew_relaxed writew +#define writel_relaxed writel + /*****************************************************************************/ /* * traditional input/output functions