From patchwork Tue Aug 28 13:38:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145320 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1203813ljw; Tue, 28 Aug 2018 06:39:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbZMyuIxtWYu5k4jNbOtvadT1g48QYth4KCHtAUuGvPzb70Ih8Eiofw631xqv6k+Z7vRHyn X-Received: by 2002:a63:f44d:: with SMTP id p13-v6mr1653079pgk.257.1535463554969; Tue, 28 Aug 2018 06:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463554; cv=none; d=google.com; s=arc-20160816; b=Vf1cHYhjTyQGzycXgxmvSLqvC4POMt/6EJ3WXnA/W+8yNX4f/jj3nb2tB5XlOq1i57 Gp9uA3FQCwE+UNQs8iQ4PvB9wxhYXARGnWNrbU4mHai/lvK5SVs2NvKwD0NoHmxu8odA RBLqYjYT07NXbTKwoPCS7YCtqBncPXHhjeNr4iXGQ5+5mDLhZ6rNqtSPkj/nM4nUU26k 6GD4bgOBxBhvfT/K9Au2pDcCFF7XH2oQROAw2x1piYfnYGQKQV4ewvhN567dqiYmuGMw 5Nx1dEJAIrd8cwLDnildY4sWCN2aL/7GkUk4h7h6+tIOA4Ek48jN+dGV3mxtW1QfYNU1 pHnA== 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=vK3Xq6Eo3yCkWAfwmDTLmFy/t/g3sd/X8elMxmYhDlM=; b=FGbqAzi7rLaEmIpSo2GptQh2/QLbfEpirP8k7KkST+Ub/hwArJ6sIfZe/wkA0Jy+LB qazwHuTXTufJ4zaRbq0T+jenUKv2TPyPQXCKeA9GVwk15PB+Oj3objMNySmbeoR1M5dQ 27/xA+4bZAO3ayv4k3MGeG9gh/LCm1MDMhkfjkqZcqMTcH5lJO6GTuenLV0Sk+v0fI+9 iry9ZmOTOwwv6Ql1smMb9AmVAHodU7q5db2vmnU8kajgIN6kKXjiwz3GovTIDkLA2nA6 akgyipU7z2ADpaWM4FgQXJQcHArqAw9utPmSEXGThuhwA6jH8U1sMXwC++19tgC6nfk2 Jo5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yew3n8Ex; 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=pass (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 x13-v6si1258585pgx.19.2018.08.28.06.39.14; Tue, 28 Aug 2018 06:39:14 -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=pass header.i=@linaro.org header.s=google header.b=Yew3n8Ex; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727706AbeH1Ra4 (ORCPT + 13 others); Tue, 28 Aug 2018 13:30:56 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35843 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbeH1Raz (ORCPT ); Tue, 28 Aug 2018 13:30:55 -0400 Received: by mail-ed1-f65.google.com with SMTP id f4-v6so1406272edq.3 for ; Tue, 28 Aug 2018 06:39:12 -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=vK3Xq6Eo3yCkWAfwmDTLmFy/t/g3sd/X8elMxmYhDlM=; b=Yew3n8ExQpnQjKb/LcetgzYblhrSMXaG4ql66N0bu7gzDEEcJVWJdZyTav/B2aTdJh qmdt1eiNzUmtj980MIxgCoBF2iqcORWA9EcFzd5Oo0fhqi2l2zRcfGVdgj0Qed0yRfpI KOf4NEsscA+m+BoIkeVna4Z/KA6W5YNYx55lw= 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=vK3Xq6Eo3yCkWAfwmDTLmFy/t/g3sd/X8elMxmYhDlM=; b=KriHyYBiEho8tIDdZXm5w4yj32Ea/BkvX8FaQI3R663xi0BKRu8V+WobNcEmA6NU0C l6HICP5fKYLcoz6kBhlQnM3uLJPiLl0jkcr14vZ705zy2zTVh8U8EN+q/ZyHFOpScPPF FWwqV896QhaWTqY908/lk2BhsMS7FXnkT9tqyvQblCweaC/VDtz8nDYWM0KMVaybxK9l n05I+e/zgy5ZaPhSMg7hJaTEcjF8KrYMkP/HHU3edwcM/cj+76HMdOJ4AngFGS9E9Y00 MjO3bFLoaGrM339Lyr/S4tVh9p5uMkzYnnyFfhQwD+ky+UidD4FX+Qr7fLmfcWq/9rfV BALw== X-Gm-Message-State: APzg51C09OgVcA5Ry7cWzEWkJ6AbYEjz1Ef5g9MK99iuISCIDxdl2bVt ho/iqkod1Hxm2YPeY6Qt1hwpCbcKeDs= X-Received: by 2002:a50:9e2f:: with SMTP id z44-v6mr2516451ede.242.1535463551706; Tue, 28 Aug 2018 06:39:11 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id k33-v6sm605087edb.31.2018.08.28.06.39.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:11 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 02/11] arm/arm64: dts: msm8974/msm8916: thermal: Add "qcom, sensors" property Date: Tue, 28 Aug 2018 19:08:31 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 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 This new property allows the number of sensors to be configured from DT instead of being hardcoded in platform data. Use it. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke --- arch/arm/boot/dts/qcom-msm8974.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8916.dtsi | 1 + 2 files changed, 2 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 56dbbf788d15..3c4b81c29798 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -433,6 +433,7 @@ <0xfc4a8000 0x1000>; /* SROT */ nvmem-cells = <&tsens_calib>, <&tsens_backup>; nvmem-cell-names = "calib", "calib_backup"; + #qcom,sensors = <11>; #thermal-sensor-cells = <1>; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 6a277fce3333..be27d8dc9e6b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -767,6 +767,7 @@ <0x4a8000 0x1000>; /* SROT */ nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; nvmem-cell-names = "calib", "calib_sel"; + #qcom,sensors = <5>; #thermal-sensor-cells = <1>; }; From patchwork Tue Aug 28 13:38:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145321 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1203914ljw; Tue, 28 Aug 2018 06:39:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZPTIkkSJhfAS2ne0CwQVKxfSr1FmvRXGBHs4dE/ZonacZFWwW01N6nukl0TV72NN2FG+IM X-Received: by 2002:a63:3c5c:: with SMTP id i28-v6mr1601177pgn.415.1535463561213; Tue, 28 Aug 2018 06:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463561; cv=none; d=google.com; s=arc-20160816; b=UZcBMSZi+Rk9HbRSGpJhrjh+xwhcCEdKrzwXqAhXjEV0jyWxfXC70WOtzcOY/PJqUk ywfHJn4gQq3wdGeY0VOR8DUuimymkI80z9gd9lWqOEydOyOkUTUTU9XCHYx3qR9rrdYG x/Mk/BGsYQZOarZbQU57Yw7fBdiTZyTR5jIsxnr9g6f5upZ8w0z/IOLmv+NK4eagBTY3 0IfauNRMScmrRL2YZhkhgF+NgoqaWc0IQeEbBCgTRwoVXLmz9HH6g13BASP701j7ISWK TTJG/rPdKYMeOYwoGqox4kCPuis1pqTXKSngEtvZ4H72pzwKlDTtsUmTbs8tRV8toqEe VWwQ== 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=PbQjEup6XpRnvv+UBO/q/f3xZ3V6EwBkXW9c9eUdpL8=; b=WCGRGF2DxEWBtn8m+fGtBgyJAH1ZRcd7KdxdSg4x1PaCHv7iK3VnNukU/iWbNM3OpI xmdQ01nG2uuzU8/jxA0G6qJtL56spZDUfjHXJ2whizzlNdYGcg0DdWBYhUsalkbdi4kk vyx20Iw6R+pliZPFTOV1QUTIYE27c3cMWAtyRAgoqWCFOeCh/UK6tprNGeS2FHbRcDjP Y/e0b/EJkQOfMqNvZuM6yXrdPtIU5jgmxWraityW/bgxIcQTHRZu0ViReBLlZWjX8Ynt KHQoEq74zsXUMTLtYp8AlVIVqcwI8wcoEBJ8eha/+/EuEmF3EdxNK8ab6UjN59Sjw0Ce 9hgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JyzwBTUz; 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=pass (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 j64-v6si1060457pgc.88.2018.08.28.06.39.20; Tue, 28 Aug 2018 06:39:21 -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=pass header.i=@linaro.org header.s=google header.b=JyzwBTUz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727135AbeH1RbC (ORCPT + 13 others); Tue, 28 Aug 2018 13:31:02 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38172 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727848AbeH1RbB (ORCPT ); Tue, 28 Aug 2018 13:31:01 -0400 Received: by mail-ed1-f65.google.com with SMTP id h33-v6so1404194edb.5 for ; Tue, 28 Aug 2018 06:39:18 -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=PbQjEup6XpRnvv+UBO/q/f3xZ3V6EwBkXW9c9eUdpL8=; b=JyzwBTUztWfCDNMkxGrOPshebCX2whfQketX4WNvaVOeetlill0VGCXoiiH+B8sxt6 2/byLEObvVdAzuXDPHK80ys2hllPfqUQbeVtrKRu6Y91a+ZIS4chVzOVpdGZKxXzAd8t 9Cy2IzzaPoGueerYjichhMPjlWdPxyMsYOu8Q= 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=PbQjEup6XpRnvv+UBO/q/f3xZ3V6EwBkXW9c9eUdpL8=; b=IJ4Q+LuMl/+C9+WO2bk8rgwMAFIciS4adkIepOVVlDAdZVRwz0Bu4OCUS5sKnGdlXM 647ry4+0/O8DEPs/keSjoRcM1h9veIJBDumqmbyPn26cR1RcLeLFR8SK70UzUCaKUjTD sr8mrElsB3Twzgei55cAmowIi73VHT84EJ648GOXypgiUGF0tPXE3skmv2gX1ulmWG2K XQql4uR1QDRWYiika9wOEh+SzU4Oxa+Qc2Xl89ftFXiqxO57aY6fFQQtgHcTpKGO3Ou+ 7/dnfyqYG+zVoYFqjsWa+rMDDpfXSygtshXjtoGr9OgJus2VQzkXb040QTNFeZsOXFGF gAJQ== X-Gm-Message-State: APzg51BhWvf2iH7ELiaVJyufGlcRmIRqkHrb8vE9J1GlDHxOzCH0E84S q4hJYHmfxDVsEfdylwmYMo5skg== X-Received: by 2002:aa7:d6da:: with SMTP id x26-v6mr2545421edr.209.1535463557845; Tue, 28 Aug 2018 06:39:17 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id f16-v6sm595597edq.36.2018.08.28.06.39.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:17 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 03/11] dt-bindings: thermal: Fix a typo in documentation Date: Tue, 28 Aug 2018 19:08:32 +0530 Message-Id: <8480b996596184a478fe74dfdb97ead7dba6fb11.1535462942.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 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 c(1) + x(1) was actually meant to be c(1) * x(1). Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Acked-by: Rob Herring --- Documentation/devicetree/bindings/thermal/thermal.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt index eb7ee91556a5..ca14ba959e0d 100644 --- a/Documentation/devicetree/bindings/thermal/thermal.txt +++ b/Documentation/devicetree/bindings/thermal/thermal.txt @@ -152,7 +152,7 @@ Optional property: Elem size: one cell the sensors listed in the thermal-sensors property. Elem type: signed Coefficients defaults to 1, in case this property is not specified. A simple linear polynomial is used: - Z = c0 * x0 + c1 + x1 + ... + c(n-1) * x(n-1) + cn. + Z = c0 * x0 + c1 * x1 + ... + c(n-1) * x(n-1) + cn. The coefficients are ordered and they match with sensors by means of sensor ID. Additional coefficients are From patchwork Tue Aug 28 13:38:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145322 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1204038ljw; Tue, 28 Aug 2018 06:39:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmodHRmShEh/HvxKjBtbK+q5gAxw3t4GqDNNQE0YZ8jpbWfsLJFosBr4bXuC8dZPgIqwMi X-Received: by 2002:a62:8186:: with SMTP id t128-v6mr1664663pfd.192.1535463567549; Tue, 28 Aug 2018 06:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463567; cv=none; d=google.com; s=arc-20160816; b=ceQBtti3Li8cOFmL69xJT5muPk9zHjUzypGOzh4DPBiv6mvDzWSc43Y8MhJ7cLcqtv Ftb6AoCMT6sSzjd5yvwwuav4ZLXgrAtjXHzcVtVc90JIDNUQUtkbpJFqBBxiPiwh6Ni6 8AG3lKbPVo7ama4rBLEiQZ+LaDHR5xmefw8I4Q3e4XfwxXrzrV+wgi7dMxnV8KJYXRu3 flv/5flE+hu/IBi8akA/wLiIs+WtsXUd9DIv34DoosGOOay7eE/+TLAt4fS84Kj7Aald VydoVzr79NqfRDC0zVeYI45wAdHe0OZkUw9Hp0y6Mu6M0F1lQIOW0QO23/sXfbYv0q0n SkMA== 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=yevtQkgsCioqMEb9KDEpyOqOMEC2bkGaMloPV72ufdI=; b=gs6dEUj+U3uox6KDfCVy+tXuEVK/S8cWYDwlBrAK2Q0fik6ofjTe5gaq8tYUpnJCup SMHYrFw1uZ8zuNjw4uBMip3mX/HTCsB1C+UPVJEfZJQv9oZPj3g2GRZ2Eg3vdad3Zuh/ 44H6AH8scSGaIR1dSwhHQERMEqyE9jJSIkoIlhdVxNjDWbaUEOf/kPtci5Exh+wbcskd woYB/jykz9WsybMSEo6apUeiaHmiTSHgsv3/t/7jd8xsd7aela7uuOhefHyJgvGkAS2w f4CsUkSZvCxRtY0ObbavCNDEGgvZ7un1RvLEz7zbhgoZswyt4tWvjq1Z3d7/n+My80VP xitg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O5OkVRG0; 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=pass (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 k4-v6si1009900pfc.328.2018.08.28.06.39.27; Tue, 28 Aug 2018 06:39:27 -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=pass header.i=@linaro.org header.s=google header.b=O5OkVRG0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbeH1RbI (ORCPT + 13 others); Tue, 28 Aug 2018 13:31:08 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43801 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727860AbeH1RbI (ORCPT ); Tue, 28 Aug 2018 13:31:08 -0400 Received: by mail-ed1-f68.google.com with SMTP id z27-v6so1389111edb.10 for ; Tue, 28 Aug 2018 06:39:24 -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=yevtQkgsCioqMEb9KDEpyOqOMEC2bkGaMloPV72ufdI=; b=O5OkVRG0LulDbp4RB6XhPlVpvtuIJAawEnDIiyd6E1ad2CJbAUHQHgMQgwsGJfZ70a ffqrqU3WdF9ktkPcZDfmlxEBmtBzaClVrjQ9ieaHmr88AAkTytbcQ8tWq4Knagg9raqG DY+dNWOHIq+kSOt3woWDXFLpdXqQNFrNdumig= 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=yevtQkgsCioqMEb9KDEpyOqOMEC2bkGaMloPV72ufdI=; b=ElTZdhhNOCurViVQCykLZV4xcwE/L/2c+Rliutt90LdZby/lPOymemQQJjNQr36rs7 xKsbvHbTFIRCpA6OZm3wooC3xqXlpoF5bPp554pWajpzoRtlmFO7/4U5iMQaG/l6CE8q oChFlgMYt5ojJHAALsVFZ5ntyiduyRPMDK+EWx903nfuPsXizHG5MUY5dh7Nqfc2UfkR +85nIicLwCObYNGC1+8QVpgudkSRCRZJNGsZ1Q0v60ZslBso95OJ56JdwH+wlvWPb7rp q6Q9fGpEboP9nbMdDYJDz2mzsJQgYhVIl6lwcq9xaXvwVxSQeOErAxNCJruETAYI4CcS ncpQ== X-Gm-Message-State: APzg51DU42ViIlbq3Z18cTKYIeb6Spi0cpGhvtCYKY2rD0UWloswtxi0 QUQjWDqWXlKx+bun0qMho7cQPw== X-Received: by 2002:a50:a7a2:: with SMTP id i31-v6mr2609936edc.296.1535463564110; Tue, 28 Aug 2018 06:39:24 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id d12-v6sm651102ede.78.2018.08.28.06.39.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:23 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH v2 04/11] thermal: tsens: Add SPDX license identifiers Date: Tue, 28 Aug 2018 19:08:33 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 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 The TSENS drivers use a GPL-2.0 license. Replace with equivalent SPDX tags and delete the full license text. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke --- drivers/thermal/qcom/tsens-8916.c | 11 +---------- drivers/thermal/qcom/tsens-8960.c | 11 +---------- drivers/thermal/qcom/tsens-8974.c | 11 +---------- drivers/thermal/qcom/tsens-common.c | 11 +---------- drivers/thermal/qcom/tsens.c | 11 +---------- drivers/thermal/qcom/tsens.h | 11 ++--------- 6 files changed, 7 insertions(+), 59 deletions(-) -- 2.17.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/thermal/qcom/tsens-8916.c b/drivers/thermal/qcom/tsens-8916.c index fdf561b8b81d..c4955c85e922 100644 --- a/drivers/thermal/qcom/tsens-8916.c +++ b/drivers/thermal/qcom/tsens-8916.c @@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index 0451277d3a8f..4af76de7dc2e 100644 --- a/drivers/thermal/qcom/tsens-8960.c +++ b/drivers/thermal/qcom/tsens-8960.c @@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include diff --git a/drivers/thermal/qcom/tsens-8974.c b/drivers/thermal/qcom/tsens-8974.c index 9baf77e8cbe3..7e149edbfeb6 100644 --- a/drivers/thermal/qcom/tsens-8974.c +++ b/drivers/thermal/qcom/tsens-8974.c @@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include diff --git a/drivers/thermal/qcom/tsens-common.c b/drivers/thermal/qcom/tsens-common.c index 478739543bbc..303e3fdaca98 100644 --- a/drivers/thermal/qcom/tsens-common.c +++ b/drivers/thermal/qcom/tsens-common.c @@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index a2c9bfae3d86..90bb431cf740 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index 14331eb45a86..8207610f326a 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -1,15 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ + #ifndef __QCOM_TSENS_H__ #define __QCOM_TSENS_H__ From patchwork Tue Aug 28 13:38:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145323 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1204133ljw; Tue, 28 Aug 2018 06:39:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaOZC84AClxAwhRZ7/aUQnli6ZjrJWaS7KLCyGl3TmIwf3B4n5SC16XzTnazvhAps/8U8wE X-Received: by 2002:a17:902:6b4c:: with SMTP id g12-v6mr1662431plt.159.1535463573289; Tue, 28 Aug 2018 06:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463573; cv=none; d=google.com; s=arc-20160816; b=I6wmnjUEgH3Uikc+PyJQlVcoJnUZyIU01l4GvBbgHTuJO5ODkZy5Qa+FsAwqBpVXTB jlKrisdq3shKoAaLWTdpsbfvG7mq0QPLi987Bm06lq4FPI8XLGFLKLTlAUG9Vhjibn5R k551p+mehJxb7/7Rmi0rpORGHWESmLEVzbkWaZlY4kvSGrvepvawU48lkgTo2tUQBnua S3KmS4sAfuFCIKpMDfUUZiJ6MyHdLU8X3TVHs0gf4ac6VmjEwXlar/qR6sVggWycs3eI X+jXKNPmMGIbbUjlWutUUmxe+7UEcGNCy/4rFg8k/gCO8XPvxsWR31WnjyFk3x8dzunL dN/g== 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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=vXbAYRMXJEvO+6OSna1ZFRja2SvHGIzoC7gmd+fJaK8Qg35HV97k1Jz1DnObTjWTa2 s3sfT3OnvEmKPYuEnpC6dvBSeW1bN3Yw6gs0XOHrLMQz92KF7Jv2zO7RzvykeqUAFPO9 Ppori08dK+FI+r4V9jNDaQlQdUosDeHzj6qlei5Xqv+aPqgyNonqI2f8kR8oMVzi2+Qd Jd1MPjG5LdpWtA3sfJVtMxPOSy3l333LVrQy2mq7RYF6Dm4xPDXAYDfUoeqUPJmb0mpP PnZVCERvtiNhcx5H0LjLulzTpITrn7k9DThvmsBviDAMmNhySwoRu5LG2xPdWOSO9nKy ixBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hAUfRUOW; 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=pass (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 32-v6si1143684plf.0.2018.08.28.06.39.32; Tue, 28 Aug 2018 06:39:33 -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=pass header.i=@linaro.org header.s=google header.b=hAUfRUOW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728108AbeH1RbO (ORCPT + 13 others); Tue, 28 Aug 2018 13:31:14 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45387 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbeH1RbN (ORCPT ); Tue, 28 Aug 2018 13:31:13 -0400 Received: by mail-ed1-f66.google.com with SMTP id p52-v6so1389451eda.12 for ; Tue, 28 Aug 2018 06:39:30 -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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=hAUfRUOWAG5vo0DUb55qiamCf0cyPx+qw4vg/Y0V8lbY9FCoWZXRguDvGH5v9Y/sFE lgm+Z3VO566KEnZlAKhQHNnIJwwDRkuX4w1hhd8KIuBd4lZHs6th8l451rGU1hlzGG1T 8ilgCMIpl3lam2rRA2IRNP4ZLo3h8YpkBxn9s= 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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=aHV/tKN7yA21RYOf6jSqcFvOs3wb8hMtKXccvE24UZW6rJa4rr0JGmtufwOqTnZymp +dT3HfVEpS6L4R2JXDosvwuzXaVt3EUYHhcujEsx+f7cVzP+egLMY7XqTDcR/n1bwQHo Ai5S1C2y+yCzPV0LRWy76uj/WElZ/YvnBZTI1A/9lqBueWkKMBK6hTEN8yjFlfPwEE1i /gGmxkdGgD1qWR71wJU7TgGnjR1HwEBv5OZQXuB8WJrBtOQKoM3hqsp37SJlTWgivuWc aLgy/xSStiR2A5AmkN9GCWmch5fY071KqTgu2+Mp/LPGip3sxJAFcadvoA9vmWZmOIfe 55UA== X-Gm-Message-State: APzg51AcU3jWzcchs9bv/GbH85FEY59pMHLptUY8C0omsf5DBsoYG5yI FC914VPZhwVCYTZ0GaLNrPeT6g== X-Received: by 2002:a50:9e2f:: with SMTP id z44-v6mr2517744ede.242.1535463570195; Tue, 28 Aug 2018 06:39:30 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id j10-v6sm610521ede.5.2018.08.28.06.39.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:29 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH v2 05/11] thermal: tsens: Get rid of dead code Date: Tue, 28 Aug 2018 19:08:34 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 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 hw_id is dynamically allocated but not used anywhere. Get rid of dead code. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke --- drivers/thermal/qcom/tsens.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 90bb431cf740..9a8e8f7b4ae1 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -80,11 +80,6 @@ static int tsens_register(struct tsens_device *tmdev) { int i; struct thermal_zone_device *tzd; - u32 *hw_id, n = tmdev->num_sensors; - - hw_id = devm_kcalloc(tmdev->dev, n, sizeof(u32), GFP_KERNEL); - if (!hw_id) - return -ENOMEM; for (i = 0; i < tmdev->num_sensors; i++) { tmdev->sensor[i].tmdev = tmdev; From patchwork Tue Aug 28 13:38:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145326 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1204469ljw; Tue, 28 Aug 2018 06:39:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbDHn425ck44jx/N+ncPLLsjmTjtq9MWtJhB+MgJgnoxzUWcFWVr6o/EI2XWXiUvFndqJCB X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr1642839plr.242.1535463591863; Tue, 28 Aug 2018 06:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463591; cv=none; d=google.com; s=arc-20160816; b=czzvw5bGMBxomnd+iT6u8Ej9aXylR13jm77mSEIpAAAtm3AdE/0FJ/igWQpQ/ioP2J c0auKbLdyw4dJrvvi0Oj0+bBVkcK6DYBMiNkwdIZC8e3U4D1ENTSuYvwblKaORcThNxf b+8iBKMJNuyZSISBX2pwOkYfRp/tHRC1CpPaaWm7U1THfXP9GmThGFEu/e/3Lfy1Ksiy fV+m5T+loM+1ex6o0WUWA1LTF/V1MNwUc2OWS3AZ4+Xo1/JDPB/rBqwKQ5d9LQplX1W8 8bvZ5QCZRB7VF/G767B6JSUndo9E81ofAHVaGsSFwYhMfF+A/0j5ttz6PKCf8HzBbBig 64Eg== 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=KGPNhtmxbZmY2SbJ8bQ/3ZZChD9pwNRV/BvwQjyiwy0=; b=RVybVNKIwHn2k6meboa/YOQKGole7UoDDiEysp6MxxIJ2O6/GM3x6FyBLqWehK9ojT Ii8hX4qvG/H8MnKo1TPbSybv/Kvubg5k7/K0vb3axb9O31VlqYy3nRVomdvP0yaynReG M9enwNhP7E7JeGVx22UllLcKYSeRcA4uG5GEhMEtNDpVp2sbkL3PvrQfrIjlgXGDdS+G c0BvZv6dcB4v+6n0/uN6PWNEFXa0baXRoYNNgk4mdS5zy/uUUE58Okmxh3g647SpOXDl lZJtEIWx3VPXdILqn+nLv7kIbKWIIjOpqX3t/oWViRyTzFzE4L5gJA6ZXJsiuyVoutlZ njMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jRz3TMe7; 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=pass (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 g36-v6si1105098pgg.186.2018.08.28.06.39.51; Tue, 28 Aug 2018 06:39:51 -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=pass header.i=@linaro.org header.s=google header.b=jRz3TMe7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728205AbeH1Rbd (ORCPT + 13 others); Tue, 28 Aug 2018 13:31:33 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35892 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727201AbeH1Rbc (ORCPT ); Tue, 28 Aug 2018 13:31:32 -0400 Received: by mail-ed1-f67.google.com with SMTP id f4-v6so1407779edq.3 for ; Tue, 28 Aug 2018 06:39:49 -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=KGPNhtmxbZmY2SbJ8bQ/3ZZChD9pwNRV/BvwQjyiwy0=; b=jRz3TMe71F2b9UgCkzD8872RQyACr9ec+apqRnpZ79KaxeZs95GJKrl7EJ7TP00HmN oBiZ0SKVAN6ysQkAy+RL2UDW4xGMHE6tXVr/nRVaYGwrXKeiZkuR8q3sd9mnYnR+th+G fpdheiArd7vZQW4X0JODc4FlL8p+MrCKfCZVs= 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=KGPNhtmxbZmY2SbJ8bQ/3ZZChD9pwNRV/BvwQjyiwy0=; b=VriqOXfQeVGLUb9XRAGVDPu8NfNtCkkr0xkqL5RgXpD4BYufXkvDMC6SslnNSHthmP t9lhEWE3MeAanLAPguqNNIJzVfuf1ikIohPpsU7g3qhT7RG4WBkTggwQrgjUrqggdJzd fTgwYMJURJWQ4E4iS/X3vK3hW2LC3eCnJl5UYhInSSlf0JbMAbMD71onuIINEwk1nTIi phNqeOdCxH4ljwql3I9cAVDBCmJxWZEcCC72O4dznJSa7YTeGdkn8QlSDFHBhVJdRJUm GWfbjih5CV6nOP4JvK5QDvmk78ql9orcWdpJusDFoNrPri92VO+FUrV7INegxp7shH2+ nFCg== X-Gm-Message-State: APzg51A9deAl20AKtR9h1ukkrfY+qVfcZpXVzQC0kic3nmYi8CgMsNpy HmVUA5ikxwFBuuzap5LtDREqLg== X-Received: by 2002:a50:a9a4:: with SMTP id n33-v6mr2656458edc.208.1535463588592; Tue, 28 Aug 2018 06:39:48 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id r11-v6sm536788edh.32.2018.08.28.06.39.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:48 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH v2 08/11] thermal: tsens: Check if the IP is correctly enabled by firmware Date: Tue, 28 Aug 2018 19:08:37 +0530 Message-Id: <35c332750fe1eddfa2eb53750b810256310866bd.1535462942.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 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 The SROT registers are initialised by the secure firmware at boot. We don't have write access to the registers. Check if the block is enabled before continuing. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke --- drivers/thermal/qcom/tsens-common.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.17.1 diff --git a/drivers/thermal/qcom/tsens-common.c b/drivers/thermal/qcom/tsens-common.c index 0b8a793f15f4..d250b757d1f0 100644 --- a/drivers/thermal/qcom/tsens-common.c +++ b/drivers/thermal/qcom/tsens-common.c @@ -12,6 +12,11 @@ #include #include "tsens.h" +/* SROT */ +#define CTRL_OFFSET 0x4 +#define TSENS_EN BIT(0) + +/* TM */ #define STATUS_OFFSET 0x30 #define SN_ADDR_OFFSET 0x4 #define SN_ST_TEMP_MASK 0x3ff @@ -119,6 +124,8 @@ int __init init_common(struct tsens_device *tmdev) { void __iomem *tm_base, *srot_base; struct resource *res; + u32 code; + int ret; struct platform_device *op = of_find_device_by_node(tmdev->dev->of_node); if (!op) @@ -151,5 +158,15 @@ int __init init_common(struct tsens_device *tmdev) if (IS_ERR(tmdev->tm_map)) return PTR_ERR(tmdev->tm_map); + if (tmdev->srot_map) { + ret = regmap_read(tmdev->srot_map, CTRL_OFFSET, &code); + if (ret) + return ret; + if (!(code & TSENS_EN)) { + dev_err(tmdev->dev, "tsens device is not enabled\n"); + return -ENODEV; + } + } + return 0; } From patchwork Tue Aug 28 13:38:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145329 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1205014ljw; Tue, 28 Aug 2018 06:40:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdboYuLnpHWuwwcz1psBt+cfD0ICt9HIGK8aRoBIdjCo3wW4yMHVrl63A/crL9REFTJKTqiT X-Received: by 2002:a63:a011:: with SMTP id r17-v6mr1670817pge.166.1535463620910; Tue, 28 Aug 2018 06:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463620; cv=none; d=google.com; s=arc-20160816; b=GHjBA5di3vsVU3c1ARPF7m3DELinSxj/0cyRfs7Dbd6girzbxcD09/lUA6gHOwqV6+ KApF6SFYDZm5lum77vFoaBTZZVYNyW1C6k1mKKaLzt2sr0Miy0uE8N4nZ7TdJEOkYtAs wWw30s4YzA4s4wCwJazPS8FJIQESWQMkMhte1DEE6S3tR6tmMuP8NMLp3ZBU4126PAqS ytBHHP0YLUyCoRJPY0cfn6DEEdE/h4+c4tuUoEEHGiuPo499DvU1Gyy0OCdU2R9gsD0k 5V04zknIcJYSf3NbUPf9/C7ctc24Ngoy7yLAty8EegjzEl1mYShl2DqWeJnEHON44uGd p5kQ== 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=dOIHmNDNib+rD5vz/dIrQhyM0hJLtwPoCOQ75FCLGyI=; b=Kb4Ct++QvyTtFuH8JfyJATUGE10RQwyj51IOWuZspgjBjG6ZwQspQSlFAx/zVtx/rX aEmEbu/SE/YxI6bzhccBGbOTZCxRM9rDtx1UU5VyRi8AwyANKLaiRtaK9T681MOA6S8P NV2e1RUBLZZs8JFgBGpEuIClmtwhiZ1o9iIDC34umaozXxsB3mbsHEOm1dgAHdlzNwYd dS2tD/I1C5ikSXPNLazfAfiJwtBVXS5qo0/BGZv52/C6WxzL6pngmsT4lXXWkz9JFPyA qpmdx32YWtszCg+vWqHAhGtMkqqODBuuX/98XJjBewNYOKdclFoTr7iImdkYidGXBKp6 qklQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W12t1uPK; 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=pass (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 f10-v6si1039477plt.4.2018.08.28.06.40.20; Tue, 28 Aug 2018 06:40:20 -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=pass header.i=@linaro.org header.s=google header.b=W12t1uPK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728253AbeH1RcC (ORCPT + 13 others); Tue, 28 Aug 2018 13:32:02 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40769 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727836AbeH1RcC (ORCPT ); Tue, 28 Aug 2018 13:32:02 -0400 Received: by mail-ed1-f68.google.com with SMTP id e19-v6so1398397edq.7 for ; Tue, 28 Aug 2018 06:40:18 -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=dOIHmNDNib+rD5vz/dIrQhyM0hJLtwPoCOQ75FCLGyI=; b=W12t1uPKBxj5FBiei2C4V+G8XUfnGLGJEoSRf4Mr9+2oj4Gbj9D5P8y9L0btCKzAkP GeSzvhO9vckBntwnlqKMdTU6p1IVXApFXpf0PdKqQwNqcwFhXmi0zcOL7HexrIKUi/qv BcOyoCCB6uTdWNCY+5WgbMne9bX3FUWSvXnDQ= 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=dOIHmNDNib+rD5vz/dIrQhyM0hJLtwPoCOQ75FCLGyI=; b=RFu51DmWbUQdGCbaqDOtr6OgeXSUWMR7t6yOIXwvrc84QDNaSrTZtl/xygqp1xMP6v vZW0zeXlJMkbgFHsp4AI9J19C+u0tf2YVHrQzGc5V3TYyOWroXKh5xluMBCJaq9fs8uI FPEZDSY4x1CZlMR7Sxxu5Eb7FZpKLrF6Xjo7JIjRylDcvLVydhuQ00iE7b4rfTZg9UvY WrV67AvYjYJG3vdJSx2ZMiADr0ugC2SWA+eTWLDOwGSNfyUG8HGVqVvXJopOMrNjNRm3 OlTl0mL36LFZ9KWkzXErmfde36JyLP/uPsZMCNlIEyv6uaPw2zeSV6RPzu/5+TpmGfd8 Zg5Q== X-Gm-Message-State: APzg51DQzUWyKSJ3RjQEj+gCODP1DSsHnrr0mbjKWCsmAHRGwvrvxFrK HXwcjdlScUmuB5OpxcZFGkFPiZTID5Q= X-Received: by 2002:a50:bdc5:: with SMTP id z5-v6mr2464195edh.46.1535463618168; Tue, 28 Aug 2018 06:40:18 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id p10-v6sm525756edh.9.2018.08.28.06.40.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:40:17 -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, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Arnd Bergmann Subject: [PATCH v2 11/11] MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers Date: Tue, 28 Aug 2018 19:08:40 +0530 Message-Id: <72c63bc617acdaddd0a420ceac1914acdf4c720f.1535462942.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 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 Create an entry for the TSENS drivers and mark them as maintained Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Acked-by: Rajendra Nayak --- MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/MAINTAINERS b/MAINTAINERS index a5b256b25905..b8c96e0699c9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12076,6 +12076,13 @@ L: linux-arm-msm@vger.kernel.org S: Maintained F: drivers/iommu/qcom_iommu.c +QUALCOMM TSENS THERMAL DRIVER +M: Amit Kucheria +L: linux-pm@vger.kernel.org +L: linux-arm-msm@vger.kernel.org +S: Maintained +F: drivers/thermal/qcom/ + QUALCOMM VENUS VIDEO ACCELERATOR DRIVER M: Stanimir Varbanov L: linux-media@vger.kernel.org