From patchwork Mon Jul 3 12:18:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Gunda X-Patchwork-Id: 9822607 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 03C7D602F0 for ; Mon, 3 Jul 2017 12:21:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAF882855D for ; Mon, 3 Jul 2017 12:21:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE69128556; Mon, 3 Jul 2017 12:21:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 235BD2856B for ; Mon, 3 Jul 2017 12:21:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753718AbdGCMVJ (ORCPT ); Mon, 3 Jul 2017 08:21:09 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36992 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753687AbdGCMVG (ORCPT ); Mon, 3 Jul 2017 08:21:06 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4C72A607C5; Mon, 3 Jul 2017 12:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1499084465; bh=hQgB0ma956w/HOQ9DapCg39J+4qKbhYTZpUKQEUBtz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJjzhuCEn9nNyw1k5TG0Y6ofUXzwKbTy+5Q0OWhObgxjlhk18ZgFxl+3D373jALT1 6GnnordusPDJAlxArDQ/vHcHNBJSEZlGQGsOey9KgC9+FNgUYoLDD/yFtNMVoV1F2E 9nN3yg3UBtILQh9sAPXVDx4GAbn5R/wmTc9mjBwA= Received: from kgunda-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DCA00607DF; Mon, 3 Jul 2017 12:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1499084465; bh=hQgB0ma956w/HOQ9DapCg39J+4qKbhYTZpUKQEUBtz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJjzhuCEn9nNyw1k5TG0Y6ofUXzwKbTy+5Q0OWhObgxjlhk18ZgFxl+3D373jALT1 6GnnordusPDJAlxArDQ/vHcHNBJSEZlGQGsOey9KgC9+FNgUYoLDD/yFtNMVoV1F2E 9nN3yg3UBtILQh9sAPXVDx4GAbn5R/wmTc9mjBwA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DCA00607DF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: Kiran Gunda , Abhijeet Dharmapurikar , Stephen Boyd , Nicholas Troast , Christophe JAILLET , linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH V1 3/5] spmi: pmic-arb: replace the writel_relaxed with __raw_writel Date: Mon, 3 Jul 2017 17:48:26 +0530 Message-Id: <1499084308-2232-4-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499084308-2232-1-git-send-email-kgunda@codeaurora.org> References: <1499084308-2232-1-git-send-email-kgunda@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace the writel_relaxed with __raw_writel to avoid byte swapping in pmic_arb_write_data() function. That way the code is independent of the CPU endianness. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 1f2ab5c..d8c857a 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -231,7 +231,7 @@ static void pmic_arb_write_data(struct spmi_pmic_arb *pmic_arb, const u8 *buf, u32 data = 0; memcpy(&data, buf, (bc & 3) + 1); - pmic_arb_base_write(pmic_arb, reg, data); + __raw_writel(data, pmic_arb->wr_base + reg); } static int pmic_arb_wait_for_done(struct spmi_controller *ctrl,