Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5466843ybl; Tue, 27 Aug 2019 05:15:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDI9EP8Rkg8i2uiBpPSTVuRP2cPdCBme5V1KEjTDmNkN/EctEJsCK79sxIgUrnlKtxZQuy X-Received: by 2002:a62:e50c:: with SMTP id n12mr12244939pff.206.1566908128110; Tue, 27 Aug 2019 05:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566908128; cv=none; d=google.com; s=arc-20160816; b=unPe47Nyf2zUteeK8IAak+3FntqR7HJ4fr8ExvF4qIISrZmQC94F0b0xBoUihZbGVv g0KVYeoBjlMgQDwd2MIJ+g19C7gg7osd1RtZRJszFXUVXdpHFu54Ol+pADLfWisB4cvg PKo9tP6nSsNCst7xgBXkp+j4rk6anuMEyUsg6IqD+gx8lRp3Xhmp6aQDvGeYsFyHsSEV 2tjHfE2ac2Aa34mvq1Q2d/OjeVUCQU1BWF7RFBBuWAptdWAiDtMuFw/+jfDBoW3JDqPB Hlj0OXdcLeSBoXqQYolkfApphet5/30gVX/g0ciMyXNKbkP0WFFhb0UKSVtlXeqP6zB2 fquQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=4wcazYDkpL0duARs99jL9aMnOJv1Px99rhHjbxqeKAs=; b=AxG5tbEy2btW/7rtg5RRApra285R1cKNQDlgHkABqJ1Nu339tDe7qethsbf1XgC1oC jbSjELiPyK0uE+SmcUAoYnvxWsPLXnJMdnMNNr1kCy2DApHTEmyrlsd+xy4eNbTmFwu2 lo2E1CY4f7RszPb73chcpXk4YyS1jbMxug4y9fmv7xTbkwSLsvGQxSVQpo2THVyJ3JRQ PHaFWD0lq2Gk4yXXUUYFp22VnjoDG2+HW4yuuxOa5wALraD17e2bTPKMo7xQ5wm20Jeq qeDgq4vZAi25vLrBQ7LcSZ4YuRoYOvsZlzlDfLjqthL8CxwEytJ4+YsAGwYSbLiPSbQ1 GSIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cIgfNMS9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ck13si8572389plb.272.2019.08.27.05.15.12; Tue, 27 Aug 2019 05:15:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=cIgfNMS9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729474AbfH0MOW (ORCPT + 99 others); Tue, 27 Aug 2019 08:14:22 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41685 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729313AbfH0MOW (ORCPT ); Tue, 27 Aug 2019 08:14:22 -0400 Received: by mail-pg1-f195.google.com with SMTP id x15so12603752pgg.8 for ; Tue, 27 Aug 2019 05:14:22 -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; bh=4wcazYDkpL0duARs99jL9aMnOJv1Px99rhHjbxqeKAs=; b=cIgfNMS9Y89X0ZTePhVRGhyzjprNxkg12d7CxOIay09vvWQ7pVobVStnxSO26gJvk1 S/MIaLSZTP/FjdrAvjSMT/AoNgVnfKrpnivkArmqpkkQHyNW8K60XuBDXLQCZBJO9Swd 9UApfN32eAlqF7F6IeEJeJ4e6X83cl82o7L93atoHWeyrSFIFn/3EWi+ZFAjHW2a93Xs 3TTRv0kz8QSOr/TKs9TEIl9KIZ4Y/2FS5HX+DVwbL96YoErvDA/9xS1QEu5jcFvDkMII Ow2mykWpg05txO9FQ/potL4EJanVMLc9b9ACki9YjX0dqUHfitZM+n65CPiNfJ4KFqNt VymA== 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; bh=4wcazYDkpL0duARs99jL9aMnOJv1Px99rhHjbxqeKAs=; b=C2w7D7Rg3aaMGALyuqDTPZT0G4ZllcL2FrAhytBQPHqkW9vVv/c1mn+6e3Fg2b9Is/ /7WcTC8EGATatPWrtPRmWUf+7zsYoOU8O/5/Ec5QjLbzVGCVsmneUdpSDQ17CIJmlkjD /JFOjPDTgFAIZ8owQTjpxXZRY4zLaI4sgK8z7tVvQglhEkZKPP7e+iYXNfzbuKqcf6mJ AP3eMLk5QWzLS0zXjoFrH3LTQNtVNAfCcJ9NoWkE/80H3Ylzqn2tA7gyj/TeZZWCC1hP oaOYAJ0ud8us81CUS3PO1wJN69kWYNTy5PF/MFgMWOl37IgxPz5Hoi6GEVMYoYYq57DG 21Lw== X-Gm-Message-State: APjAAAVlGLlcf+jZe+Y5F9D6quqaadDyWXYBwans+kS2DIgBIKAmA0no 221yrKJFYqMmUyMMhY7Xe6+2xHYF22hGlQ== X-Received: by 2002:a17:90a:a00b:: with SMTP id q11mr2396118pjp.91.1566908061427; Tue, 27 Aug 2019 05:14:21 -0700 (PDT) Received: from localhost ([49.248.54.193]) by smtp.gmail.com with ESMTPSA id d3sm3148595pjz.31.2019.08.27.05.14.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Aug 2019 05:14:20 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, sboyd@kernel.org, masneyb@onstation.org, marc.w.gonzalez@free.fr, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v2 00/15] thermal: qcom: tsens: Add interrupt support Date: Tue, 27 Aug 2019 17:43:56 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1: - Collected reviews and acks - Addressed Stephen's review comments (hopefully I got them all). - Completely removed critical interrupt infrastructure from this series. Will post that separately. - Fixed a bug in sign-extension of temperature. - Fixed DT bindings to use the name of the interrupt e.g. "uplow" and use platform_get_irq_byname(). Add interrupt support to TSENS. The first 6 patches are general fixes and cleanups to the driver before interrupt support is introduced. This series has been developed against qcs404 and sdm845 and then tested on msm8916 and msm8974 (Thanks Brian). Testing on msm8998 would be appreciated since I don't have hardware handy. Amit Kucheria (15): drivers: thermal: tsens: Get rid of id field in tsens_sensor drivers: thermal: tsens: Simplify code flow in tsens_probe drivers: thermal: tsens: Add __func__ identifier to debug statements drivers: thermal: tsens: Add debugfs support arm: dts: msm8974: thermal: Add thermal zones for each sensor arm64: dts: msm8916: thermal: Fixup HW ids for cpu sensors dt: thermal: tsens: Document interrupt support in tsens driver arm64: dts: sdm845: thermal: Add interrupt support arm64: dts: msm8996: thermal: Add interrupt support arm64: dts: msm8998: thermal: Add interrupt support arm64: dts: qcs404: thermal: Add interrupt support arm: dts: msm8974: thermal: Add interrupt support arm64: dts: msm8916: thermal: Add interrupt support drivers: thermal: tsens: Create function to return sign-extended temperature drivers: thermal: tsens: Add interrupt support .../bindings/thermal/qcom-tsens.txt | 8 + arch/arm/boot/dts/qcom-msm8974.dtsi | 108 +++- arch/arm64/boot/dts/qcom/msm8916.dtsi | 26 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 60 +- arch/arm64/boot/dts/qcom/msm8998.dtsi | 82 +-- arch/arm64/boot/dts/qcom/qcs404.dtsi | 42 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 88 +-- drivers/thermal/qcom/tsens-8960.c | 4 +- drivers/thermal/qcom/tsens-common.c | 528 ++++++++++++++++-- drivers/thermal/qcom/tsens-v0_1.c | 11 + drivers/thermal/qcom/tsens-v1.c | 29 + drivers/thermal/qcom/tsens-v2.c | 13 + drivers/thermal/qcom/tsens.c | 59 +- drivers/thermal/qcom/tsens.h | 288 ++++++++-- 14 files changed, 1089 insertions(+), 257 deletions(-) -- 2.17.1