From patchwork Tue Jan 6 10:02:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 5572341 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 89C2BBF6C3 for ; Tue, 6 Jan 2015 10:02:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D48AB201B4 for ; Tue, 6 Jan 2015 10:02:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CD7D201EC for ; Tue, 6 Jan 2015 10:02:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754758AbbAFKCW (ORCPT ); Tue, 6 Jan 2015 05:02:22 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:41517 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752716AbbAFKCV (ORCPT ); Tue, 6 Jan 2015 05:02:21 -0500 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 06 Jan 2015 19:02:20 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 13F4349CE9; Tue, 6 Jan 2015 19:02:20 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 053DB2806E; Tue, 6 Jan 2015 19:02:20 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 00E242806D; Tue, 6 Jan 2015 19:02:20 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id VAX11710; Tue, 6 Jan 2015 19:02:19 +0900 X-IronPort-AV: E=Sophos;i="5.07,706,1413212400"; d="scan'208";a="176975425" Received: from mail-hk1lp0121.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.121]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 06 Jan 2015 19:02:19 +0900 Received: from SIXPR06MB333.apcprd06.prod.outlook.com (10.141.120.15) by SIXPR06MB190.apcprd06.prod.outlook.com (10.242.151.148) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 6 Jan 2015 10:02:18 +0000 Received: from localhost (211.11.155.147) by SIXPR06MB333.apcprd06.prod.outlook.com (10.141.120.15) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 6 Jan 2015 10:02:17 +0000 From: Yoshihiro Shimoda To: , CC: , , Yoshihiro Shimoda Subject: [PATCH 1/2] thermal: rcar: fix ENR register value Date: Tue, 6 Jan 2015 19:02:07 +0900 Message-ID: <1420538528-5236-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1420538528-5236-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1420538528-5236-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: HKXPR02CA0032.apcprd02.prod.outlook.com (25.161.48.17) To SIXPR06MB333.apcprd06.prod.outlook.com (10.141.120.15) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; X-DmarcAction: None X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:SIXPR06MB333; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:SIXPR06MB333; X-Forefront-PRVS: 0448A97BF2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(199003)(189002)(66066001)(19580395003)(19580405001)(50466002)(47776003)(64706001)(101416001)(229853001)(106356001)(40100003)(50226001)(4396001)(36756003)(20776003)(50986999)(76176999)(48376002)(21056001)(92566001)(89996001)(87976001)(33646002)(2950100001)(77096005)(78352002)(68736005)(97736003)(122386002)(105586002)(107046002)(62966003)(42382002)(31966008)(76506005)(120916001)(42186005)(77156002)(99396003)(46102003)(88662002); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB333; H:localhost; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:0; MX:0; LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB333; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2015 10:02:17.2906 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB333 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB190; X-OriginatorOrg: renesas.com Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since the write value should always be 0 for bit 31-4 of ENR register on R-Car H2, this patch fixes the value. Signed-off-by: Yoshihiro Shimoda --- drivers/thermal/rcar_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 8803e69..bbdf64e 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -409,7 +409,7 @@ static int rcar_thermal_probe(struct platform_device *pdev) return PTR_ERR(common->base); /* enable temperature comparation */ - rcar_thermal_common_write(common, ENR, 0x00030303); + rcar_thermal_common_write(common, ENR, 0x00000003); idle = 0; /* polling delay is not needed */ }