Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2351055pxb; Fri, 5 Feb 2021 16:04:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7+n45/MKxAxwhLXRrjQWuhuUs30fpE/8Ylz2Anr1ibFUR8kTK43diGy6qsja+bhdGWWlH X-Received: by 2002:a17:906:488:: with SMTP id f8mr6143726eja.311.1612569887291; Fri, 05 Feb 2021 16:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612569887; cv=none; d=google.com; s=arc-20160816; b=yR0+6I78wKijK8y3AMXNgZipDhiQEvM9n3wohCObpJDst0Jbz4LKenpZQyPucVseF6 TxoDhcwfSus8407mBJOCfw3hLMVsafhGdWad5Pze4ei8j5AxpeEbQsTtp/y32msxurjL 4QMyKy49SHhujEsJr8Jsy7N5sN16MMYdpmvHTxMx+bLtplXrUgvT0bijABZZJIjIIDo7 eE8qkwz3zEWsEZQ0ZsxrYyK2ASKKWoHql6eC0zIqCLau4YDGeCd4ABEnfkC6ehnARpkG wTbIoHI4rABP5SSFPKJ9Lm3pap7+Q5TCc0/Zmy8yehm9HtZNVWYVM30VTukv0GNyCLDB qrGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kq1TjsNymno+6ko/DMpEnlf0Mb3/ToofZPHyHL9aCg8=; b=D5FNMg9fOczx+L+6LPmvddYyoYP+saUQga1J2xNXeA17n/nIUZNelsgdj4fSaXOi+M fTSizEONtaKIo+pSZIZQ9tTZQmcfydZyB8+vbV4zFHra5JN/pEGs0b1bOzEUQt+LQT7f NnBfw+E1ijjXHhcm/yfVvmpThNt41JIAGlRM6f328AZfpIzI6zQQssMH1XTMjKucLbCO Y+VlNfGfL0p2gC5HfAOw4F8O7/wYAAA+BgPB4e9g4ohkKCG7OqR6z+TewhTq/Vum3Zyl 64ph2jGYIZ50FnNQSfF+64lobKKp+1U2wJcPJE6/MJ41u5DSizT77s73Rgnbw6Fwvz8c HpYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si7670416eds.167.2021.02.05.16.04.23; Fri, 05 Feb 2021 16:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbhBFADN (ORCPT + 99 others); Fri, 5 Feb 2021 19:03:13 -0500 Received: from muru.com ([72.249.23.125]:57682 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhBENqb (ORCPT ); Fri, 5 Feb 2021 08:46:31 -0500 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 46EE181BD; Fri, 5 Feb 2021 13:46:02 +0000 (UTC) From: Tony Lindgren To: Amit Kucheria , Daniel Lezcano , Zhang Rui Cc: Eduardo Valentin , Keerthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Adam Ford , Carl Philipp Klemm , "H . Nikolaus Schaller" , Merlijn Wajer , Pavel Machek , Peter Ujfalusi , Sebastian Reichel Subject: [PATCH 4/4] thermal: ti-soc-thermal: Use non-inverted define for omap4 Date: Fri, 5 Feb 2021 15:45:34 +0200 Message-Id: <20210205134534.49200-5-tony@atomide.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210205134534.49200-1-tony@atomide.com> References: <20210205134534.49200-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When we set bit 10 high we use continuous mode and not single mode. Let's correct this to avoid confusion. No functional changes here, the code does the right thing with bit 10. Cc: Adam Ford Cc: Carl Philipp Klemm Cc: Eduardo Valentin Cc: H. Nikolaus Schaller Cc: Merlijn Wajer Cc: Pavel Machek Cc: Peter Ujfalusi Cc: Sebastian Reichel Signed-off-by: Tony Lindgren --- drivers/thermal/ti-soc-thermal/omap4-thermal-data.c | 4 ++-- drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/omap4-thermal-data.c b/drivers/thermal/ti-soc-thermal/omap4-thermal-data.c --- a/drivers/thermal/ti-soc-thermal/omap4-thermal-data.c +++ b/drivers/thermal/ti-soc-thermal/omap4-thermal-data.c @@ -24,7 +24,7 @@ omap4430_mpu_temp_sensor_registers = { .bgap_dtemp_mask = OMAP4430_BGAP_TEMP_SENSOR_DTEMP_MASK, .bgap_mode_ctrl = OMAP4430_TEMP_SENSOR_CTRL_OFFSET, - .mode_ctrl_mask = OMAP4430_SINGLE_MODE_MASK, + .mode_ctrl_mask = OMAP4430_CONTINUOUS_MODE_MASK, .bgap_efuse = OMAP4430_FUSE_OPP_BGAP, }; @@ -97,7 +97,7 @@ omap4460_mpu_temp_sensor_registers = { .mask_cold_mask = OMAP4460_MASK_COLD_MASK, .bgap_mode_ctrl = OMAP4460_BGAP_CTRL_OFFSET, - .mode_ctrl_mask = OMAP4460_SINGLE_MODE_MASK, + .mode_ctrl_mask = OMAP4460_CONTINUOUS_MODE_MASK, .bgap_counter = OMAP4460_BGAP_COUNTER_OFFSET, .counter_mask = OMAP4460_COUNTER_MASK, diff --git a/drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h b/drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h --- a/drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h +++ b/drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h @@ -40,7 +40,7 @@ /* OMAP4430.TEMP_SENSOR bits */ #define OMAP4430_BGAP_TEMPSOFF_MASK BIT(12) #define OMAP4430_BGAP_TSHUT_MASK BIT(11) -#define OMAP4430_SINGLE_MODE_MASK BIT(10) +#define OMAP4430_CONTINUOUS_MODE_MASK BIT(10) #define OMAP4430_BGAP_TEMP_SENSOR_SOC_MASK BIT(9) #define OMAP4430_BGAP_TEMP_SENSOR_EOCZ_MASK BIT(8) #define OMAP4430_BGAP_TEMP_SENSOR_DTEMP_MASK (0xff << 0) @@ -113,7 +113,7 @@ #define OMAP4460_BGAP_TEMP_SENSOR_DTEMP_MASK (0x3ff << 0) /* OMAP4460.BANDGAP_CTRL bits */ -#define OMAP4460_SINGLE_MODE_MASK BIT(31) +#define OMAP4460_CONTINUOUS_MODE_MASK BIT(31) #define OMAP4460_MASK_HOT_MASK BIT(1) #define OMAP4460_MASK_COLD_MASK BIT(0) -- 2.30.0