From patchwork Mon Apr 21 15:56:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 28713 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6A7542032B for ; Mon, 21 Apr 2014 15:59:36 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf23591697yha.11 for ; Mon, 21 Apr 2014 08:59:36 -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=i9SAiTgFdCbsJvxVUFTtl0W/UTRv6jghz0eqiIUbwVU=; b=PStCbAzAijcUe1Pvg1O/Z7Q6thFLZcs5GDA5C6uaTnY1ppVwZi/O48vj0N+eJGHERQ 7wVKf7KjRw9NfqEORRlijis7vp4LvFTCe+4miVM1JyTHAwwD1O9RNxtGHNGK0UOSlcQP 5O9E+USIT8xc6QHEvEh1/yJLzfPAMPQMbPqheJG5cSovRsr66C51NguSohssZW5t3gDF LDdk0ehRAa7JmVA5KCqKN0m6XenjFQgnoAvofLXKPMYJbxp02uCKr3m8acy79B6aL3F4 8NloY0uFM9p0ufC7ERu211EhjG2TqfO3gNowzRqd8o0A6AfwCBApwCK0zZjfMd3vt+Wr IkqA== X-Gm-Message-State: ALoCoQm4OtdjeslKGZCvvyDdyrleTeUZQzU5p22NZkJjNr4OkJwmP7BpyppAypSkySZBXTFxezug X-Received: by 10.52.28.116 with SMTP id a20mr14939625vdh.2.1398095976162; Mon, 21 Apr 2014 08:59:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.40 with SMTP id 37ls2363206qgk.32.gmail; Mon, 21 Apr 2014 08:59:36 -0700 (PDT) X-Received: by 10.58.185.145 with SMTP id fc17mr36113003vec.14.1398095976040; Mon, 21 Apr 2014 08:59:36 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id d20si6321484veu.43.2014.04.21.08.59.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 08:59:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so7948418veb.40 for ; Mon, 21 Apr 2014 08:59:36 -0700 (PDT) X-Received: by 10.221.29.137 with SMTP id ry9mr31865931vcb.6.1398095975954; Mon, 21 Apr 2014 08:59:35 -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 ib8csp300537vcb; Mon, 21 Apr 2014 08:59:35 -0700 (PDT) X-Received: by 10.67.14.98 with SMTP id ff2mr38739378pad.101.1398095975266; Mon, 21 Apr 2014 08:59:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tm7si8547532pab.439.2014.04.21.08.59.34; Mon, 21 Apr 2014 08:59:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752027AbaDUP7c (ORCPT + 3 others); Mon, 21 Apr 2014 11:59:32 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:49047 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbaDUP7S (ORCPT ); Mon, 21 Apr 2014 11:59:18 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s3LFxFBu007506; Mon, 21 Apr 2014 10:59:15 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3LFxFSO019352; Mon, 21 Apr 2014 10:59:15 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Mon, 21 Apr 2014 10:59:15 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3LFxEUb011907; Mon, 21 Apr 2014 10:59:15 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Linux OMAP Mailing List , , Tony Lindgren , Felipe Balbi Subject: [PATCH 03/10] usb: phy: mv-u3d: switch over to writel/readl Date: Mon, 21 Apr 2014 10:56:45 -0500 Message-ID: <1398095812-14222-4-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.2.459.g68773ac In-Reply-To: <1398095812-14222-1-git-send-email-balbi@ti.com> References: <1398095812-14222-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , by removing the _relaxed suffix, we can build this driver in other architectures. Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-mv-u3d-usb.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/usb/phy/phy-mv-u3d-usb.c b/drivers/usb/phy/phy-mv-u3d-usb.c index d317903..d342175 100644 --- a/drivers/usb/phy/phy-mv-u3d-usb.c +++ b/drivers/usb/phy/phy-mv-u3d-usb.c @@ -39,8 +39,8 @@ static u32 mv_u3d_phy_read(void __iomem *base, u32 reg) addr = base; data = base + 0x4; - writel_relaxed(reg, addr); - return readl_relaxed(data); + writel(reg, addr); + return readl(data); } static void mv_u3d_phy_set(void __iomem *base, u32 reg, u32 value) @@ -51,10 +51,10 @@ static void mv_u3d_phy_set(void __iomem *base, u32 reg, u32 value) addr = base; data = base + 0x4; - writel_relaxed(reg, addr); - tmp = readl_relaxed(data); + writel(reg, addr); + tmp = readl(data); tmp |= value; - writel_relaxed(tmp, data); + writel(tmp, data); } static void mv_u3d_phy_clear(void __iomem *base, u32 reg, u32 value) @@ -65,10 +65,10 @@ static void mv_u3d_phy_clear(void __iomem *base, u32 reg, u32 value) addr = base; data = base + 0x4; - writel_relaxed(reg, addr); - tmp = readl_relaxed(data); + writel(reg, addr); + tmp = readl(data); tmp &= ~value; - writel_relaxed(tmp, data); + writel(tmp, data); } static void mv_u3d_phy_write(void __iomem *base, u32 reg, u32 value) @@ -78,8 +78,8 @@ static void mv_u3d_phy_write(void __iomem *base, u32 reg, u32 value) addr = base; data = base + 0x4; - writel_relaxed(reg, addr); - writel_relaxed(value, data); + writel(reg, addr); + writel(value, data); } static void mv_u3d_phy_shutdown(struct usb_phy *phy)