From patchwork Mon Jul 2 12:44:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 140744 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3952121ljj; Mon, 2 Jul 2018 05:44:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe1820CfPCd4UhcQRKyf7XgdZ7lDV5Slof6SdzrYISJUkxHOI1f5BAIdlyc5CKRTL5ATa4L X-Received: by 2002:a62:3a9d:: with SMTP id v29-v6mr16002170pfj.215.1530535483372; Mon, 02 Jul 2018 05:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535483; cv=none; d=google.com; s=arc-20160816; b=C68lLVaPrE/5c8LdbwLD8t+Rh84UGuqiTpLNwCDf8C+AGR2vWjEFrepUeH+ZnAxlYU g2SM629D6LllFsCJXU0dXdT02aNp/9Z18jEo/W5Bn83Md8svKUqlPMKWOBbI0j446nRm MrMaaeti5h/fB7jftYoSr2V3HuAwQazLw77qWShKuYaKyVVcEi4GYsJLGMhLCrMely1W xfUrtPIlUNKYXfuTMlcxhB911j+6c5ipHbsCBtek1twVH1JUQyzF+vSpTvVUcA57N5sa alK3hJh0Zckkuksm32klBc3RdHfNAiHOYNruuTa7rJ6mPK549e7IAepX1Ud8BgwgV5VD QMfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=TvDKH4qNgzA214K12M/SiaKsdAtFTPHIZU8nhQ6ROT8=; b=s01t1gqKr+jwXjdE75MDUTTstz3pSZ+ruKwEUfJlx85V3bR8/sR9q4yEC/1D0dCTlV v88pa4g5+NOb4vZjXwY2YleQngL77sDMurBYi30KQwPe6cVPkkY1b40pdnTqthGyOUe4 Z7m/FI6ywQRBgSSL+ghxdm5KknzD3zoz0eAaoEeS7yVXYYze8Bvdf1uiHzRcOhszIZ0s DnpPQxrYf/yguevI3lzW4b6yYNqJgNm2wSadDVzP57fkS/K7fJoEbUKNDBYUaEMEr4Pu F6uVYjSqhTI6WkYNvR8vRLJmwQtNs1g03kAvrm2TR8e38Iz2rtNyBK/iLMQuHF6oRepJ E9qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=URs0cOrY; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w37-v6si2574498pgl.514.2018.07.02.05.44.43; Mon, 02 Jul 2018 05:44:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=URs0cOrY; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752968AbeGBMok (ORCPT + 13 others); Mon, 2 Jul 2018 08:44:40 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:34501 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752938AbeGBMoe (ORCPT ); Mon, 2 Jul 2018 08:44:34 -0400 Received: by mail-pl0-f65.google.com with SMTP id z9-v6so7916123plo.1 for ; Mon, 02 Jul 2018 05:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=RqHvCXWgQNEn4X6AU/ZqYttyBtBVtMakbjX0moav5Ps=; b=URs0cOrYlP4BOAYTacOb341ahNRD+O96SbDO+rBDo9it/c7v3pLydiIQo3adVWu1Jh dPcX/HQIc1QhXtpJTqRuq3ytFbLGHIDhCxytbGJPnyIir4HUyT9Nc+HFScs1lThmf6ZU nZ9ukc9w/slVHpl9yfmI/QqQ2tW+KqWgNYBwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=RqHvCXWgQNEn4X6AU/ZqYttyBtBVtMakbjX0moav5Ps=; b=iPzSxpJa5EsxxkRiv6yCpBxCv0Hrdfcp06Z3Z0grpBc3Du169pouU59X2iDSbAr2l7 jXIkyfU5U+Of4j+sSowoivFKthVpTuuonyGt2Ykh8Gy55kcCbvK5wc7kHHWNK5JKzlyA jRFYeO1LVvEeWOJoRzjewMYawhocp4MM5J8Fid0M5d2MnRZ4czgIv+NYrn/U8v1EE+OK GjKYOZ+s9HciHVO4defcPAJ/+2fVS8UCrDLfqLokB+xEfpK9uUKjHMlm2YsnICPFxvCQ SmxxbbB8MQZqucAUnyQJLCAP3f05SeSXRKpuTGPSceT8Mip8/5BHWYDxQTwAOICrIjEq ulWg== X-Gm-Message-State: APt69E3xTA79fWfsnVQ4XoZr5Zyt/z3oFddiOOuZFrWXKJaeW3IlZZWe gybSOFISV6Pa2/EV/nhUiM/hHg== X-Received: by 2002:a17:902:8f83:: with SMTP id z3-v6mr904635plo.111.1530535473517; Mon, 02 Jul 2018 05:44:33 -0700 (PDT) Received: from localhost ([49.248.63.129]) by smtp.gmail.com with ESMTPSA id m6-v6sm9301042pfh.153.2018.07.02.05.44.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 05:44:32 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, vivek.gautam@codeaurora.org, andy.gross@linaro.org, Zhang Rui , linux-pm@vger.kernel.org Subject: [PATCH v4 1/6] thermal: tsens: Get rid of unused fields in structure Date: Mon, 2 Jul 2018 18:14:04 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org status_field and trdy are unused in any of the tsens drivers. Remove them. Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Acked-by: Rajendra Nayak --- drivers/thermal/qcom/tsens.h | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index 911c197..dc56e1e 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -77,9 +77,7 @@ struct tsens_device { struct device *dev; u32 num_sensors; struct regmap *map; - struct regmap_field *status_field; struct tsens_context ctx; - bool trdy; const struct tsens_ops *ops; struct tsens_sensor sensor[0]; }; From patchwork Mon Jul 2 12:44:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 140745 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3952210ljj; Mon, 2 Jul 2018 05:44:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcDBUalcjt/xbQtH7ErzCfZIkfWXKRjTVZ0xBOJUG9nzZI7Wu9b79K7pIyonXqpGTYfuBmu X-Received: by 2002:a17:902:1e6:: with SMTP id b93-v6mr13387454plb.149.1530535488321; Mon, 02 Jul 2018 05:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535488; cv=none; d=google.com; s=arc-20160816; b=QocjTld0PwhuozlU5deE36Hw3tpFEdML+NiWu806axgemJnsleHJGs/7ld6jHtpckj Nvm/Eg7k03byEHGa3wudLVZyxTO6NmTtLBe2jkTuRlgkKCleLCpZGxf/TBmt5mz34Uab QcAf9ukNV3vKATnuq/X8OGTe2WFWl6SAPMnj/OJ+6Mx7ddPcx1/ztpxKku1QDClKyHdv 0yoygpryeUC11KM0YVaMa+tta9++1Gp6IXPGA7PSUXfKRMShuOGW6izNu8PpigaxN41l QPhhZ72tzybPOaNUKprRO4WAVvb/W08V+Z0zIa+kyWkc4qJ3ULdTDVYcL2PVGz4BpyUz p18g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=CNIu3Q5qWXf9xhuT+dx4CCKcJ18pKAG/rdVg2h7kHg0=; b=LuGRrRhseHSQjoyT7B1rwZAFXyzp/DYQaA0qPzStyrajxG+WIJVBzwq852rbMCBWWw 1jqaE6ySRP6nrTEqgh6s/NaM9wU8NxMmPxmRekYdia3JP8Pm11scGLbfSPbAAcQg06t1 fIx2NM7HrOxkYI5adOkMP1oBBYQUoF9/xeBl61B0jH3RsUBUwUs3fIiZXXGdg0KJIqF4 XMpGuaC11mV9xw1eKUCGKgVyOtigQqKziCl5E4p74jWV7SHvV8c5dUsad7AkDkJt+8A4 TGT3S84rKJfSgB9n8iwhOIkTOk6Rtc+X80E+SqPn8Mr+F1Gj2ubd8eZxH1A081xaPkVu juyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A9bUS5oL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e62-v6si5692430pfe.327.2018.07.02.05.44.48; Mon, 02 Jul 2018 05:44:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A9bUS5oL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752958AbeGBMop (ORCPT + 13 others); Mon, 2 Jul 2018 08:44:45 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35871 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbeGBMoh (ORCPT ); Mon, 2 Jul 2018 08:44:37 -0400 Received: by mail-pl0-f67.google.com with SMTP id a7-v6so7911602plp.3 for ; Mon, 02 Jul 2018 05:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=A9bUS5oLTtxNgUSE6dn+mKeLHV9rp/OQZhO+/XOqgzQICw7pdUHDfaiKUx8KkXQIqR HnC8+FMkpHVulcwHTj7FZTih/GT1Ln1yLdMFAHZ/dBVyNqHOxe8FTNn7Lk3y/OABjA/4 Jf8HcYhZFHdWaqxFQPy3qOdRq+MPzWLhNgO9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=LboO0m9tdUv5OClL5JGmFqiWh7zVC6d1MgWg2XNw1k8=; b=m6dHyfTxmNhVnibljwDxAdVTlm2crJE3utAOY0ATwwR2ihR6IvLhhmrVM47M4KtUNv bLptEBHnQY1rD3CodVik2cqrN77er7MEqcwC8dbGYy8B1wQ0YNRMM6pV8eCcgQtPtUWg 6Uyyeun9ncwOxOfitWkob+M+Rt4OWbEWE76MNkn9AhBhuNkHfHeMdSuOHtvMk2INq+FK KYh0nf6VHXM7Sdalef70MWuSJXXoe+I71qPJkLMBk+A4c/+Z6cW0ULkpf91AGG9eo2rq L+1iFmDSoxdif4NDcpRmUuGQ5GGIkjOEIHymGl3YCDSB6yO9ngadYnXAbRLfCo6mC7nA u5TQ== X-Gm-Message-State: APt69E3yGdOnhfbUR9AmJvcZZTauda9EUTaRr/LBIQ+t3/go4EITuLYP 0qjiJcO5dQn/VsFWbHmRFriImg== X-Received: by 2002:a17:902:1023:: with SMTP id b32-v6mr26243957pla.145.1530535477316; Mon, 02 Jul 2018 05:44:37 -0700 (PDT) Received: from localhost ([49.248.63.129]) by smtp.gmail.com with ESMTPSA id n18-v6sm8913718pge.37.2018.07.02.05.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 05:44:36 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, vivek.gautam@codeaurora.org, andy.gross@linaro.org, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 2/6] dt: qcom: 8996: thermal: Move to DT initialisation Date: Mon, 2 Jul 2018 18:14:05 +0530 Message-Id: <80e54ddfa672ae05db24a90c5f5463fc7fcbec46.1530533998.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We also split up the regmap address space into two, one for the TM registers, the other for the SROT registers. This was required to deal with different address offsets for the TM and SROT registers across different SoC families. Since tsens-common.c/init_common() currently only registers one address space, the order is important (TM before SROT). This is OK since the code doesn't really use the SROT functionality yet. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Bjorn Andersson diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 8c7f9ca..6c8a857 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -461,7 +461,17 @@ tsens0: thermal-sensor@4a8000 { compatible = "qcom,msm8996-tsens"; - reg = <0x4a8000 0x2000>; + reg = <0x4a9000 0x1000>, /* TM */ + <0x4a8000 0x1000>; /* SROT */ + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; + + tsens1: thermal-sensor@4ac000 { + compatible = "qcom,msm8996-tsens"; + reg = <0x4ad000 0x1000>, /* TM */ + <0x4ac000 0x1000>; /* SROT */ + #qcom,sensors = <8>; #thermal-sensor-cells = <1>; };