From patchwork Tue Oct 20 09:11:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7444181 Return-Path: X-Original-To: patchwork-linux-rockchip@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 A6807BEEA4 for ; Tue, 20 Oct 2015 09:12:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFDC4207F7 for ; Tue, 20 Oct 2015 09:12:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45CDB2081A for ; Tue, 20 Oct 2015 09:12:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZoSy2-0005ny-Sz; Tue, 20 Oct 2015 09:12:26 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZoSxn-0005P7-1E; Tue, 20 Oct 2015 09:12:12 +0000 Received: by pasz6 with SMTP id z6so15866856pas.2; Tue, 20 Oct 2015 02:11:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tX2QSlwrVYZ3wCSYBaCGGwgYERLyTjOIdGF3PuvomBE=; b=CqSV1a+XISGTsAu2pNYUbVk4pJop/E1OOFskw9KvgEvKAV4XxbdGhpAsh8uRoTHYRS 9pkNDmoYvUj7WXWgY7PVzoGrJjaDBQR9G3lRD2AEmXHhj5uAUjA21prZfINZtDFdbXaI Xdv2BVzk5TnhiurffTNCxSaAu9xy0hvWjqeZGGKov5FG0ZHKDw3ewpWvXTuIIhb0Nysr HwzL7QA3lYqpDO2mw7RgtW5NFD/UgYWfVNmZwPerwJWQRq63pWZCTcr1mW1DX3NEkW+z WkfIoiNR7/F9hb2urmsmwdoeDN95VTBWFARGqYLedjQuhO4WLFPOCEOVy+onmlaI09VH 1OKw== X-Received: by 10.68.254.137 with SMTP id ai9mr2745656pbd.68.1445332310290; Tue, 20 Oct 2015 02:11:50 -0700 (PDT) Received: from localhost.localdomain ([43.226.228.195]) by smtp.gmail.com with ESMTPSA id ez1sm2562847pab.6.2015.10.20.02.11.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Oct 2015 02:11:49 -0700 (PDT) From: Caesar Wang To: Eduardo Valentin , Heiko Stuebner Subject: [PATCH 3/4] thermal: rockchip: change the TSHUT default state Date: Tue, 20 Oct 2015 17:11:03 +0800 Message-Id: <1445332264-6054-4-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445332264-6054-1-git-send-email-wxt@rock-chips.com> References: <1445332264-6054-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151020_021211_294270_FE57E8FB X-CRM114-Status: GOOD ( 12.12 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pm@vger.kernel.org, Dmitry Torokhov , linux-kernel@vger.kernel.org, dianders@chromium.org, linux-rockchip@lists.infradead.org, Zhang Rui , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 As the TRM says, the TSHUT default state is high active. In general, the TSHUT state can get from the dts. Otherwise it gets the state from this. Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index c53e318..776d668 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -326,7 +326,7 @@ static void rk_tsadcv2_tshut_mode(int chn, void __iomem *regs, static const struct rockchip_tsadc_chip rk3288_tsadc_data = { .tshut_mode = TSHUT_MODE_GPIO, /* default TSHUT via GPIO give PMIC */ - .tshut_polarity = TSHUT_LOW_ACTIVE, /* default TSHUT LOW ACTIVE */ + .tshut_polarity = TSHUT_HIGH_ACTIVE, /* default TSHUT HIGH ACTIVE */ .tshut_temp = 95000, .initialize = rk_tsadcv2_initialize,