Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3792757imm; Mon, 2 Jul 2018 05:47:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeEJQBmxoqrbvBVhpja6bQpUClFI06WAQv961kdF39ZrbAQTjPNKZq9LHacTlOXEWB2x3/W X-Received: by 2002:a65:5545:: with SMTP id t5-v6mr20859562pgr.157.1530535671006; Mon, 02 Jul 2018 05:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535670; cv=none; d=google.com; s=arc-20160816; b=Z9ot0sarlSUWMmY+hWFbTKyKEBBikNpN8Ca5U68YQaNQszqoHybQXIpoEfm45c+QIB QnVfedbSTFRSsSOl5OizUTV62J6UdwRSBW2rcqh8wwJ7BYHEkWzxoSiwp3qvC+5UU72F l7iANeeaLnd6QlhmB+B2MgutAZ6BlS7MKH5/EeJnkl2RNIuvPZ2o5G56j07caRnEsiSn 2KBGwx/BMX4ipF6zFAeOU0IObuqnf9QK59rqsejmviCWW/B2DNwL3lqq1i4JmFPz3cCy 5lgscfU5houffsT6UsIs/hNpuEZWP/ieaBbrU2VtlUieOyaWwUTVYlS58CSPYXHt75F4 jYtg== 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=D291gaejtIl2creVuc3NXahXRTkldLGc9ZtgwAjGAws=; b=vGbOrgfovYgyrmv4QOZk+2KOaOHQrYUXmoQmfRNZdEw20SmwHoe4IlGzE9TwkLgGSS oe3JkXYzy22vNNTVRaSwIjQg5JPWZcd25OO4YD1wcnRB5Dntd/JnKY0rebwSpar5vgLb pELyvF1Lw9gBz/Wrmzz38vwKr/Z64wemJ8eE9VGiTCYTateUYvFtKHYiE+W5fFwrKJEP Vnhpwm+6H/kMj1f0OokaqXxA0Gtk37GcmB8Ek+rMi1OhebGVYcLEo6p64IfeJa5F4esA MqVd18Q9XmlWxQqACr6NsQNd9NANhX5kLfyTnYK51gSLJ0/8vNIcGYnTVLPbZRNsJ6tu jB1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4xqT7sz; 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 k11-v6si4018018pgm.154.2018.07.02.05.47.35; Mon, 02 Jul 2018 05:47:50 -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=U4xqT7sz; 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 S1752416AbeGBMq7 (ORCPT + 99 others); Mon, 2 Jul 2018 08:46:59 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38856 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752873AbeGBMo3 (ORCPT ); Mon, 2 Jul 2018 08:44:29 -0400 Received: by mail-pl0-f67.google.com with SMTP id d10-v6so7911102plo.5 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=bsMEAJkBRT1ncxyPpg3MkdGeIo3RXM4wQK/G2eh65rYbIDNFIfYrLqOVsBT/YecFUk fEhi0qT8i57UIDeYgb49ZdjycsdJ292Svz/IXx/736wV5IKh0FW+YgGp7J6OfAtv98ju aE8XAdhqerhzaXcpRcMudp1lWpXZy4ouN9dHQDbiuyHRjsVuDuGZhczAatNyYCCzXZLE TfQizgA4GjWXf+qduX1vvMMivXDqk0hayXnPw/P671qj7fxp3Rebt4QmVbXATmr8vHeU wRYsdv9mrjG+j7fYE74JejCnBCbZfADFRsPfiavtLCBcIMBe07b/AvUnzzQe5TRbN00s rh+g== X-Gm-Message-State: APt69E0iYE3nLfnA6BVSsC8Ni+irZgEfO/ozwJS3BDuJfHWnns/PWgOl 0vPbbbN2+bJ52KZD6aLijgs7R7hYr0o= 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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