From patchwork Mon Jul 2 12:44:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 140743 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3951967ljj; Mon, 2 Jul 2018 05:44:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeZjMbPc9JrKHIthUnc44XoUDFJ0sOv+HM1gXlVoI6oJ9sdF8HdDa88/7+YVaI3HgJJPOpL X-Received: by 2002:a63:5922:: with SMTP id n34-v6mr6836191pgb.113.1530535474041; Mon, 02 Jul 2018 05:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535474; cv=none; d=google.com; s=arc-20160816; b=WMjg0BwC1cFL5p5ht9nLnaUYlI3TiFPhjM1HMnxd4PKnb4NlIj7JND3L4DhRO+fqED 8pcDyGi1oJpaQYPw2TjWQ6BB8+aR/tmOQ6IyWiY2sstdXwVtDY7NHLuoLcY02RvbmGsY mnqdovdlXhco8gjJ8slwOSYioT1k+a7HWh5CR9K0bbSrGZ66IBzNRAe2vmUc923dOzc4 FjkzJHLdBgPMV2gXxk/sUB0vH2+1yPwUHLeSjGavHtplC31qqkMDIoHt7KPJw7yX4atP 10//9PwDu2ETjHQplaI7cprC/ssVGY39kKd1dXr1yglh62eQq4/fvG8ArbOTC3pATNv3 Qsnw== 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:arc-authentication-results; bh=2vb4JwysxJhML7IZAnn9iWC3Xh6cnCM3OAEo1pibtgM=; b=dirKDSVzR6R6CLLrY7ht2rprp0BYLAu9OcZTrzJULUX6kcGsymA6LcIsY4rAjmVtqI p8M6gWCfuc6eDIdfu02+dSgHC8IHI/NklTZtQS8JZ5vxdizAx0WfBOJSTllPn2Iq2iEJ hbT/2R6Hpmzl6lmeFwGSedzC2hnWuqn3oYdVL7eCADoqHcpHjBXsdLSGQ3OMGeX6dlke /JCjtEQLDlKn301AWaTKik1VsgfQTZs744otI0eOqnI5kGa0/K9m+fEGU1nMJHfzuGxp 7jbMA7w4sHME7qpJmF/oUNxA97F4UTictnYYtZHIJB1A/ZPGq2uRvEHvvHoO+RwET39z eSXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U4xqT7sz; 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 r24-v6si14782597pgo.295.2018.07.02.05.44.33; Mon, 02 Jul 2018 05:44:34 -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=U4xqT7sz; 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 S1752671AbeGBMoc (ORCPT + 13 others); Mon, 2 Jul 2018 08:44:32 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:42134 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbeGBMo2 (ORCPT ); Mon, 2 Jul 2018 08:44:28 -0400 Received: by mail-pl0-f66.google.com with SMTP id y15-v6so6041142pll.9 for ; Mon, 02 Jul 2018 05:44:28 -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=D291gaejtIl2creVuc3NXahXRTkldLGc9ZtgwAjGAws=; b=U4xqT7sz8/i00vW7ZN9zV4C4AFfKw9d4xKlp1kXcQ5i+GAr58QKuQ8P+0zo+TbHZeQ bQtu6xu4HrhRLPjEndKv2Qm6ojQM+SZkfYFO4DtbLeCR3hFVnYcMSwP3WrAQIgahXeOq 7Kl3vubrdN6yGE2NYlvarV1MIHEChH83xZFBo= 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=D291gaejtIl2creVuc3NXahXRTkldLGc9ZtgwAjGAws=; b=eIt8GrtiNwSCfPxzatO1SrZMpuKJ2wj89TPwK5RxIvbJxoTSTzcAQeGxxAJ8bMMQ5B XSOZAVZrF2yWMYVGFsxnrg3ktDeokEOH4fvnlyeXWeBN6uhbMPfPVPRm/rJMH/qwk5xm UTTvt8I2Wz3px/UQj32rQKFKsq6uyWjqRicK8TzB9MNS5Uw5TnTtiZBXO6KFtc6ZyNoC jU0PHI1qkdjWaoX3F5TjYpgvKCsyHr2KpKVZy/fmEF5ggBO6ie2BboQbgl87+x0sEr2E I3EZdFJem1bXdn0f9RFUqchPHFgSXkzTVeGvzKsaiMS8j943zeOqi4kvClWIDprvKMHr zvQg== X-Gm-Message-State: APt69E3jwEfhQdUAOrfdJezytonaKIYIcaF+A8I3wtfKoIJnTYrHZT8Q WRyVt+0nE47qVO/CGqoKyGESj85VwTg= X-Received: by 2002:a17:902:9344:: with SMTP id g4-v6mr25810646plp.10.1530535468244; Mon, 02 Jul 2018 05:44:28 -0700 (PDT) Received: from localhost ([49.248.63.129]) by smtp.gmail.com with ESMTPSA id n6-v6sm52782591pfk.36.2018.07.02.05.44.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 05:44:27 -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, Kees Cook , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v4 0/6] thermal: tsens: Refactoring for TSENSv2 IP Date: Mon, 2 Jul 2018 18:14:03 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series is a mixed bag: - Some code moves to allow code sharing between various v2.x.y versions of the TSENS IP, - new qcom,tsens-v2.4.0 DT property for SDM845 and a generic qcom,tsens-v2 property as a fallback compatible for all v2.x.y platforms, - new platform support (sdm845) - a cleanup patch and - a DT change to have a common way to deal with the SROT and TM registers despite slightly different features across the IP family and different register offsets. Rob mentioned offline that we should expose the full version string of the TSENS IP (x.y.z) and have a fallback compatible. I hope patch 4 does what you were looking for. Regards, Amit Amit Kucheria (6): thermal: tsens: Get rid of unused fields in structure dt: qcom: 8996: thermal: Move to DT initialisation thermal: tsens: Rename tsens-8996 to tsens-v2 for reuse thermal: tsens: Add support for SDM845 thermal: tsens: Check if we have valid data before reading arm64: dts: sdm845: Add tsens nodes .../devicetree/bindings/thermal/qcom-tsens.txt | 2 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 ++++++- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 +++++++++ drivers/thermal/qcom/Makefile | 2 +- drivers/thermal/qcom/{tsens-8996.c => tsens-v2.c} | 39 ++++++++++++---------- drivers/thermal/qcom/tsens.c | 6 ++++ drivers/thermal/qcom/tsens.h | 7 ++-- 7 files changed, 62 insertions(+), 22 deletions(-) rename drivers/thermal/qcom/{tsens-8996.c => tsens-v2.c} (66%) -- 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 Reviewed-by: Bjorn Andersson