From patchwork Tue Dec 3 05:23:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 180701 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1067952ile; Mon, 2 Dec 2019 21:23:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxYpFasfSN3YboQi2pZfH/NuQZiqXKx1x4cBM7jt7J8QmprhYW6ToVY/0ruWH49m2WhUgpA X-Received: by 2002:a9d:75da:: with SMTP id c26mr2053725otl.40.1575350630356; Mon, 02 Dec 2019 21:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575350630; cv=none; d=google.com; s=arc-20160816; b=sQGvlJSFvUJP5OUq3/IEbUsNfccZ00SuXTVW7jYk+orR5C7czXeQbYiDY2auOc/O+p 6dBJAUbog+8AiiC9qrPcLh+3dfW+M1cmLkbMqxB8ZF8Nx7PzWUxCAFcidMKY4065dvYj +CdxEgjf03cgKufIOjOn4LeX1iw6bH4zInfHKUvHlRqvnpDg71Z+JjXYj4P+SEP5Tv6o 3YLrX8SMBQyb9ANrTwkZoVb8/VmCwKVfZB/c6OMJYJb1Wu+Nd692l71rLDBWn+0Dhi8j xVB4cbPZBsP7PKH/sgYUV/UtlJdRu9RE0Aqkv7PyI5xPDq9sXG+KFVtIAfBEjPH47XmA t/7w== 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; bh=jCnbshc6gwC9Lz7KrpZNRQtAnW1kUNCWIyQg9GLVi8g=; b=bCxkH71IpueEhqtjphhdcZfhfpF5u+HfB5eDPwZ2Yg84OwFlzI0hxE5sM32NnZegTD 1YDSrG1lM0mjf8CMbrVUVgoYzm0J8TgWv0tIZePDcwYWLuZT1tRV7QHyx5jUNjB+ba24 GedSwJPsugSFfa/+xsmkpdk+aGqxchuiVz4FauWArcdKWgLUI9BGgH0ZQZqiprRqNeag YMR/SCMTbo/uD4a5adWEOqoQVLamWA3FoZqmSnA4r97oWqtLM0kDvohJe3lXklZyMNLo h97/URWitJBLqc/hOeX1hMS5i64MgD0kMEJQhgkNhSw09SOi0gg0/FfWfQEyIl0lmiqr JjRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OAsl82Oz; 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 x2si688908otk.66.2019.12.02.21.23.49; Mon, 02 Dec 2019 21:23:50 -0800 (PST) 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=OAsl82Oz; 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 S1727069AbfLCFXt (ORCPT + 15 others); Tue, 3 Dec 2019 00:23:49 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42521 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbfLCFXs (ORCPT ); Tue, 3 Dec 2019 00:23:48 -0500 Received: by mail-pg1-f193.google.com with SMTP id i5so1107320pgj.9 for ; Mon, 02 Dec 2019 21:23:48 -0800 (PST) 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=jCnbshc6gwC9Lz7KrpZNRQtAnW1kUNCWIyQg9GLVi8g=; b=OAsl82OzpSmTAhx0IKBHZKzsbwj/Z21pQqt+a4HJyo/HZFuWYG9T4G04aGZRPpDabt +EEHPB/YWvTT1xhURL6ea6bIVo+plxAXVlqEIbZR06NB9Sh2Wq9iHh9wwy3WlzDu+HTw uFjhM186omJhFZh1qp3s9THXC88LAjvd7sLJd4FM4Em2wk/cI/SNy0/OyPbVGovb4Q69 GJEWRkCGmkBjBwaoIDjgfYabTSvOlon7UJgG4w9P5zJVxHSdgpBOicTCBHw2ZvQPh4M2 bsPl8engt05uk4jXYpdp992AtjFowJHclWUqfPjTgcuzgsI2DEJPaghc7lXxnn+s0Qvw e2qg== 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=jCnbshc6gwC9Lz7KrpZNRQtAnW1kUNCWIyQg9GLVi8g=; b=KcQ5T2Wt+rauWoE5xUpIMAyWilkoS3HesNOq5K0OqS+qSyKgwGVzTNAAjQQu1kE/ED 0rImB2D7gqGUvpfiOC40DSnReVJ2QgcwPfcRTFClH0wB7lf9IrXW7/IvtSLSQZagkdA2 9XsIgsxA1Zhn6tFgOjXjoFu0tAFzt94VPlTVTwd5G7TynCp4KGzoLKgNNrmAUqZRKEiL MOcQoYt3QHm4jlqYh9kRvOh7fdeIs5GktKQTQJkb8laxNki6dgeJS7qGixQiKN3W3XtK 8hUOmD+lnIeecbLCYXbxp8juwTqc5hUUMvmegomspXVFj/XxKTfaNypwjelAom3YW6AZ yPIw== X-Gm-Message-State: APjAAAWD1SYfHM4NwUYxG6yqcXogiox3RwO1ltTpyuj1+fwWcXRKgPKq 81pwDK2kHrGwI/kasMbg7Gtdng== X-Received: by 2002:a63:6787:: with SMTP id b129mr3465932pgc.103.1575350627967; Mon, 02 Dec 2019 21:23:47 -0800 (PST) Received: from localhost ([14.96.109.134]) by smtp.gmail.com with ESMTPSA id z30sm1426685pff.131.2019.12.02.21.23.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2019 21:23:47 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, swboyd@chromium.org, sivaa@codeaurora.org, Andy Gross Cc: Daniel Lezcano , Amit Kucheria , linux-pm@vger.kernel.org Subject: [PATCH v2 3/9] drivers: thermal: tsens: use simpler variables Date: Tue, 3 Dec 2019 10:53:24 +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 We already dereference the sensor and save it into a variable. Use the variable directly to make the code easier to read. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens-common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/qcom/tsens-common.c b/drivers/thermal/qcom/tsens-common.c index c2df30a08b9e4..1cbc5a6e5b4fd 100644 --- a/drivers/thermal/qcom/tsens-common.c +++ b/drivers/thermal/qcom/tsens-common.c @@ -368,7 +368,7 @@ irqreturn_t tsens_irq_thread(int irq, void *data) tsens_set_interrupt(priv, hw_id, UPPER, disable); if (d.up_thresh > temp) { dev_dbg(priv->dev, "[%u] %s: re-arm upper\n", - priv->sensor[i].hw_id, __func__); + hw_id, __func__); tsens_set_interrupt(priv, hw_id, UPPER, enable); } else { trigger = true; @@ -379,7 +379,7 @@ irqreturn_t tsens_irq_thread(int irq, void *data) tsens_set_interrupt(priv, hw_id, LOWER, disable); if (d.low_thresh < temp) { dev_dbg(priv->dev, "[%u] %s: re-arm low\n", - priv->sensor[i].hw_id, __func__); + hw_id, __func__); tsens_set_interrupt(priv, hw_id, LOWER, enable); } else { trigger = true; @@ -392,7 +392,7 @@ irqreturn_t tsens_irq_thread(int irq, void *data) if (trigger) { dev_dbg(priv->dev, "[%u] %s: TZ update trigger (%d mC)\n", hw_id, __func__, temp); - thermal_zone_device_update(priv->sensor[i].tzd, + thermal_zone_device_update(s->tzd, THERMAL_EVENT_UNSPECIFIED); } else { dev_dbg(priv->dev, "[%u] %s: no violation: %d\n", @@ -435,7 +435,7 @@ int tsens_set_trips(void *_sensor, int low, int high) spin_unlock_irqrestore(&priv->ul_lock, flags); dev_dbg(dev, "[%u] %s: (%d:%d)->(%d:%d)\n", - s->hw_id, __func__, d.low_thresh, d.up_thresh, cl_low, cl_high); + hw_id, __func__, d.low_thresh, d.up_thresh, cl_low, cl_high); return 0; } From patchwork Tue Dec 3 05:23:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 180705 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1068169ile; Mon, 2 Dec 2019 21:24:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyDNC/R1LWL/QZ9R7h64fUv5bLmHFYcssfKsVFVdwo9C9DW1Rahmt2o8PPXv5+85EKiBAlT X-Received: by 2002:a9d:708f:: with SMTP id l15mr2069461otj.286.1575350646031; Mon, 02 Dec 2019 21:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575350646; cv=none; d=google.com; s=arc-20160816; b=l9wXvKsVEOU8rDtymCGeOeX7UtgEXsq+AXgevXVeQTHbsHeG+A54g0yTCx0vKRuw2N glYs8j4XAX88errDey4nFBZP9cxGfO5uhTvjfAkzb2h/SI16+qmOjmOVl1G8QOuBKBEl dkbn9SG5/V+QjrGgoYYnYOt5K+O7YdfULF9sLmsxWeAHkg6laVDaMkcIgMxfY+HritAO yvFZJ6aH8LHaKeu5D0GTDF0Kv40LAuZ7pQXRjxp7xw5ONTQcPiU/7fZBEV2hfOvi6k0S TVYQlTIvg52knaVacrwJiyr3W7keKqqBs17xpUWsTMoNsnsZouwxxxHwAoSHqjbNMrme 32Gw== 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; bh=uC4Bl0qQMP+1vSYZwhrmDHQhbcFrxWT9l8fOqCUV/2M=; b=C3s4lAncOO3xTZSJUAVSVxDlOnPnGoA9OtHrXilRH2WCPHLOXBXoUYyjMT31GBld+m OLHqNsntK0+DhZk4sTBibE01ojazV//x3xur8kdKgn/FFMNPJLJqDTa429zuCHffACll Oi0Rt6F/Avj1VJ7VEq5X1vy1WFi2yFVDMcDee2tP3DafCHJcrhTwUXqcA9dVa6y++jCo sDk2in8V41EWqvKy7wDUnLmxIwGVRi4pog1G6kJD+Dh/B14/xhd6thCBn9ZALYp9ytgX Gn/9gyESLwsTsVjqb31MmG5lqO0Jy4vi+CLoZn/AAaf5lb9GfCZOF4jbjbfGqW787HG3 WhMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CsBQbbk3; 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 e4si717002oie.107.2019.12.02.21.24.05; Mon, 02 Dec 2019 21:24:06 -0800 (PST) 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=CsBQbbk3; 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 S1727234AbfLCFYE (ORCPT + 15 others); Tue, 3 Dec 2019 00:24:04 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:35399 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727205AbfLCFYE (ORCPT ); Tue, 3 Dec 2019 00:24:04 -0500 Received: by mail-pj1-f65.google.com with SMTP id s8so1040547pji.2 for ; Mon, 02 Dec 2019 21:24:03 -0800 (PST) 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=uC4Bl0qQMP+1vSYZwhrmDHQhbcFrxWT9l8fOqCUV/2M=; b=CsBQbbk33gwSnGTheESyeysKYf5sXnfg5mZVFnO0DaOw2FrrxXsCZTUBhUS/MrDmrP xVJsth6AadZWqmV4Cn4jnVRF5YTOi8prYKzDcQQXIq11NQhRCeNijr9gQhIzk8Q5YrjC aqHhpgAtaZFym1+lC7ZBR+uSsLZH+/MjroeeuZi9MkRiNabtAHU6GSl6otUCcOYnDShf A8TGRHlbu8P5X4OrSmpaOVuFrxhQkejScB+1zzLtgUvQGe1JLdaBKW+f/cLcMGV0HG/5 sfcHMxgnT4oDpY80QZ6aWaJyWYFiHRnZmHyef0Kg3WDmMDxBCtCQFFIQsvjcpm2Dbb2S yBPA== 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=uC4Bl0qQMP+1vSYZwhrmDHQhbcFrxWT9l8fOqCUV/2M=; b=GljI8Qy26mFp/ugdcvyvT5QNG7EoG6FVQ/uQqk1WCT+VZG874YjwSpU4ajElh6M2Ae M4h1K49Qx76u+WUIssdWoIH8KfUzI9ZzkSNGjPeIh3OpC8m2y6qUqoYowx987mjmI5OT q2+h2SwdkxR2JfI7zPVbeejCfrwqn4JTOnbWMwphspjHnvhOGGy7vb5rNF8LZsXHU7JW Gddahk9/ceN16X+548pS3bSHUe/h0hPlViyx2cTcnP2vES5FaeemJG67GR16Er/JDMuN +bv0haTyacNEY88wdtJ1vYi8FXa6GjpG8uH9JQGSZXg9jZ3IW+lIDvnErMUJI7nmHisK TI5g== X-Gm-Message-State: APjAAAXYxyYZZIvZ3tZKkUQWdlBwXtnTmgI6oLDUlOK0W8evN5qx6V6j KCoNaXx78Vek/o4LotS77DlPgw== X-Received: by 2002:a17:902:126:: with SMTP id 35mr3273197plb.105.1575350643416; Mon, 02 Dec 2019 21:24:03 -0800 (PST) Received: from localhost ([14.96.109.134]) by smtp.gmail.com with ESMTPSA id l18sm1415986pff.79.2019.12.02.21.24.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2019 21:24:02 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, swboyd@chromium.org, sivaa@codeaurora.org, Andy Gross Cc: devicetree@vger.kernel.org Subject: [PATCH v2 7/9] arm64: dts: sdm845: thermal: Add critical interrupt support Date: Tue, 3 Dec 2019 10:53:28 +0530 Message-Id: <2e01f6891b5cbdc5dec754e7e3afc737ecbaa87a.1575349416.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 Register critical interrupts for each of the two tsens controllers Signed-off-by: Amit Kucheria Message-Id: <3686bd40c99692feb955e936b608b080e2cb1826.1568624011.git.amit.kucheria@linaro.org> --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index ddb1f23c936fe..8986553cf2eb6 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2950,8 +2950,9 @@ reg = <0 0x0c263000 0 0x1ff>, /* TM */ <0 0x0c222000 0 0x1ff>; /* SROT */ #qcom,sensors = <13>; - interrupts = ; - interrupt-names = "uplow"; + interrupts = , + ; + interrupt-names = "uplow", "critical"; #thermal-sensor-cells = <1>; }; @@ -2960,8 +2961,9 @@ reg = <0 0x0c265000 0 0x1ff>, /* TM */ <0 0x0c223000 0 0x1ff>; /* SROT */ #qcom,sensors = <8>; - interrupts = ; - interrupt-names = "uplow"; + interrupts = , + ; + interrupt-names = "uplow", "critical"; #thermal-sensor-cells = <1>; }; From patchwork Tue Dec 3 05:23:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 180706 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1068217ile; Mon, 2 Dec 2019 21:24:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwXQf0t2R1wyzxhdVbooyLDgvLWKXcQt67ZyJYqWnKheMxVGn9nGc9rm9NZIhFcRRlXzJc+ X-Received: by 2002:a9d:7201:: with SMTP id u1mr1937183otj.181.1575350650229; Mon, 02 Dec 2019 21:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575350650; cv=none; d=google.com; s=arc-20160816; b=kkpxdMLNZGssZIu0tw+xLu3bMbs1xmT+TecD7LVZq5XVqVH5Ha0Q5ieMMMm4t652Qs vTV/Jk7zij8dvHE4kE2eEf4tyh5RhOMnsfXc1viqgOeYhgh6XeT8ZjPozWp8fskcz51T CxFQhjr1cukpPXc8EOks6O3B4uEnGSKtbyqB5Vxo+QE2zjzOeX377/5DpWWA/qoAfLkz rB6vEJp2N9tBP2SkTHWD66A9ffmHPoukSort6lIN+1lIghcxU3MwdX7fIuQkCtJT+flP 32mCWEGM77HdhCFxnf29FSeRyCWjT/e//ytefjmNdaV/I/L/ysYw/OGfI/bRkNlIcT/0 /xRg== 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; bh=z0wd2bkKduQ+i5fk/EQsJPpFHH3ALeC9IpHFk2IOC4U=; b=T9CxP6lip8k7FyF470jBRTAQ/1nWKmB5HbgQVvYMCaloi8wsbgNdKA2dsJwpUfXSXv iXJn890bSTLdyEDHURe7PatXVVesUzRHrpUbBNajej015VxYs12Ml+J38lurBbZXUnID LlrT8SRuOCa4stqYhMqrFP3cCpcn6kTfPpZDTALnBpexkJ0MIWcy80HzvO7W76mux8UE sZiKiQo6NetcXBhfCtOMSIl+rmRWCH08X6f3fgbQItzZoz96qxBnIEQI7osKxjJVViF1 7cn6oIGukZkBnNUynM81o1SIA1U+4OUkNTtgVXaRiou1Jvc2l+pXblXegql1K1zLJcIR dBng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I97wPUn5; 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 c195si758582oib.266.2019.12.02.21.24.09; Mon, 02 Dec 2019 21:24:10 -0800 (PST) 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=I97wPUn5; 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 S1727272AbfLCFYJ (ORCPT + 15 others); Tue, 3 Dec 2019 00:24:09 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36231 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727232AbfLCFYH (ORCPT ); Tue, 3 Dec 2019 00:24:07 -0500 Received: by mail-pl1-f194.google.com with SMTP id k20so1217711pls.3 for ; Mon, 02 Dec 2019 21:24:07 -0800 (PST) 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=z0wd2bkKduQ+i5fk/EQsJPpFHH3ALeC9IpHFk2IOC4U=; b=I97wPUn5AdpqoulNYp4MLektHFnqlZpzv1q6Tple/h1X9kp4o6h9qh1FQIG/VBV0BE Tvl3InjLcCwxYV7b+gpFhrSZQdo0MlgijP574fZFNyHv6Nz76r7nqs/B7m+kT5wAM7m1 vwG5QeygVMxOqAy1yRrhuGSM/gRdLCVnt/Vqc5NhiccxGRfpys1DnV++S2frxyKP34xm /qkuWYgBjLO0Nm+YfuTbVGqorGkiaZQr9GbAsLODRkJsoA5Hi/MTxbHgNL3WCSfUvLkb lNH6nfwLml4FcQOwJm3vh2wmEvVpb/D3CE+rxzG5MJfi44HPyFH1Lf4jkDN5hwoPmlRX 9Gcw== 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=z0wd2bkKduQ+i5fk/EQsJPpFHH3ALeC9IpHFk2IOC4U=; b=Ma6SugZ31DNxrpQMWcnOL2Iy/h/wIVHwh77Jgv62msdN0sxjRDS9V5fLhxXenQNjTZ gOpgHGmKCJ/Ghi/1/tdgSnUHWtd2IsW9J8ni+gSfY/F1M8zYFuGNKxM3ID8WxYRRZhSQ SKZJj05e92cVZa1YaNgDivD/HqVLTiJ2izuBOczalCQ7f2Edp6BuCQ91SxRIkO//gjp7 tIl6BMDR6pbv9rOfCzHH/v05EsAsFVCiMuKfvWgznYnr7pS1nc0YYkmDfVjzaxTEfGom WOM5xCaUGb9laC7BVov7WaNjxx19TrGmhzT6J2j2hB2I+WKI3cmUShgywmSZpbiMvPfE BjqA== X-Gm-Message-State: APjAAAXhNb5ZgM/lleyAfEgsFh2IVzCrLRXo2MpuVj2NNULRcx4wIp4/ M6dlDQg8QpL2XxedlHl196r9o4lZWSvAjw== X-Received: by 2002:a17:902:b403:: with SMTP id x3mr3255707plr.28.1575350647017; Mon, 02 Dec 2019 21:24:07 -0800 (PST) Received: from localhost ([14.96.109.134]) by smtp.gmail.com with ESMTPSA id u26sm1419005pfn.46.2019.12.02.21.24.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2019 21:24:06 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, swboyd@chromium.org, sivaa@codeaurora.org, Andy Gross Cc: devicetree@vger.kernel.org Subject: [PATCH v2 8/9] arm64: dts: msm8996: thermal: Add critical interrupt support Date: Tue, 3 Dec 2019 10:53:29 +0530 Message-Id: <53d8f7b922ec889ed11380896c2a367ae0998db2.1575349416.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 Register critical interrupts for each of the two tsens controllers Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 4ca2e7b44559c..fec0e50fe4fa3 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -591,8 +591,9 @@ reg = <0x4a9000 0x1000>, /* TM */ <0x4a8000 0x1000>; /* SROT */ #qcom,sensors = <13>; - interrupts = ; - interrupt-names = "uplow"; + interrupts = , + ; + interrupt-names = "uplow", "critical"; #thermal-sensor-cells = <1>; }; @@ -601,8 +602,9 @@ reg = <0x4ad000 0x1000>, /* TM */ <0x4ac000 0x1000>; /* SROT */ #qcom,sensors = <8>; - interrupts = ; - interrupt-names = "uplow"; + interrupts = , + ; + interrupt-names = "uplow", "critical"; #thermal-sensor-cells = <1>; };