Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5338178imm; Tue, 18 Sep 2018 08:02:05 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4XXZcSxrRt1jhJiXox47vDWy8jc5sL5I62kY2Dgjo+LJHyJ4iqNTylNTQdbXV4z9lwYF1 X-Received: by 2002:a63:2605:: with SMTP id m5-v6mr27097145pgm.225.1537282925047; Tue, 18 Sep 2018 08:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537282925; cv=none; d=google.com; s=arc-20160816; b=pn4RYBFYaGU/B7FmY7BcseFNfbRjItpaG0x9DvShiiFPuUik7kGlzOKruj7Ye0gIJZ 25TZDrxijCvMSKXs0Yf5mI0e4KpqW2Me8IsLs6zx5Zb71YyZtE6CuYejd5gml/Gb/jaK 03cQvvlTnaznrolDqAYEO7u0GTB9yS/hY5IFEmO00k13BS2eacDAhrDZjAh9YwuXlGEC clSOq0JqvA2/Qtt9FB16nYiWne61OyBtCf3LWqDrJemXXChcxKTryD+SlxdIjXTw85vK ke81mzzCWszL4qKYEaI/pl+ozZGY1hKWgCcwQpkN6AJ/A8uX/4ScSCh8NHaWyGCLerQ6 WpgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bT+Al7guonHNoJYaJS4t0/s/SL2mKF9hxIlk0OZuBiY=; b=WplaPPuWhUwr4OpG3u60t1gkvBI1LF7MIaNgvmR0491k1xuv6iOMM/IZiu1GZHzY5T aE3wxAHCGgncyUBZO9shczkcnW+Vak98VupIyu/30Nmaav4jFuZJranhO9ViMKzo7l6P iPpK+JxKaTxiSliJG1b385hLJy31sdmgfcQ3XWr3Uh5GcchM+NIprUqKY7qTZf/yWD0a m2ZW651odf5S7cDW5ASATj7X9zYG+tgQh8AkOytwvHAFcK+o1j23w89HFFmVo5rzsM5d LOobj9x7p/OjYOQLeVVS+mLvTH4CD+7iT2473FOwlk+j/4anzMV1nYOycnoFMUY0s/20 I5SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YmAAeXvL; 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 f7-v6si18841568pfc.174.2018.09.18.08.01.47; Tue, 18 Sep 2018 08:02:04 -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=YmAAeXvL; 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 S1729971AbeIRUec (ORCPT + 99 others); Tue, 18 Sep 2018 16:34:32 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:36559 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729799AbeIRUeb (ORCPT ); Tue, 18 Sep 2018 16:34:31 -0400 Received: by mail-ua1-f68.google.com with SMTP id c12-v6so1041513uan.3 for ; Tue, 18 Sep 2018 08:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bT+Al7guonHNoJYaJS4t0/s/SL2mKF9hxIlk0OZuBiY=; b=YmAAeXvLkr1L7h5fTPmCx7VXC6o5j/M2fyWGofko8aBFhO6lGYffpIH7RKqpEanV/7 pfUEVnljp86vcBz0AzIo/Xea5QiPlI+dzCckiFnuYHpOIZ2D4RkTvIIsAC54R5MJFqY+ DXLQ/S2mpKV2qNgmOtX+hA4Q4F6lKWn4pPl8Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bT+Al7guonHNoJYaJS4t0/s/SL2mKF9hxIlk0OZuBiY=; b=Ht0dBtbxGVa7Bjhzg1QNaAz1Vkredj8jv9HKwZDSWNGsg8W8BqFhk9Kcnl933jgFJJ RuBEjfZKC/zj6fNZuVC9TdaGJtDp0L39cJwyui5IQ8iEKe/LmiESaTm+dzmMMeuu4F3C hB9mRj6RLPbFG3n10BNrxM55crsEqrbO8ws2Pt5t5Fhy3xNkUUJaxpR8VZ+qIBENzXZY 6B0qkkk/5cpTBfatwCwbo4b4TDZUz1sQskl0MOM2zbDjOHxR44U0cDfeNFZrJfN2G5mW wBPTUC1At4tPmgF33dO1hVRspzUSiWbLtssF5volQfERtg1k5UysWL2Ltv7stZd9MDSz dvtg== X-Gm-Message-State: APzg51AtBIrGBMhndvfCvWQKJW22tO8ncSeELa6fXrzn2h6vAzgb/w4y lxGkns7gEa6U18Fs8Aqxvn2tjlpw8tJC9pIuwCuPR8byaGY= X-Received: by 2002:ab0:3e9:: with SMTP id 96-v6mr9023569uau.40.1537282891704; Tue, 18 Sep 2018 08:01:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kucheria Date: Tue, 18 Sep 2018 08:01:20 -0700 Message-ID: Subject: Re: [PATCH v3 00/16] Another round of tsens cleanups To: LKML Cc: Rajendra Nayak , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , smohanad@codeaurora.org, Andy Gross , Douglas Anderson , Matthias Kaehlcke , "David S. Miller" , Andrew Morton , Arnd Bergmann , Daniel Lezcano , gregkh@linuxfoundation.org, mchehab+samsung@kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux PM list , "open list:ARM/QUALCOMM SUPPORT" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eduardo, Andy, On Wed, Sep 12, 2018 at 2:53 AM Amit Kucheria wrote: > > This is another series of tsens cleanups before we add interrupt support. This applies on top of 4.19-rc2. > > Patches [1-6] can directly be applied by Eduardo. > Patches [9-16] can directly be applied by Andy. > Patches [7-8] introduce a new check and needs review and can then be > applied completely separately by Eduardo. > > There is a *dependency* however. Patch 1 should be applied to the tree > before the DT changes in patches 9 and 10. To clarify here, it might be easier if Eduardo acks patches 9 and 10 so that they can be merged through Andy's tree before the rest of the DT patches. That would remove the need to create any immutable trees or having to worry about the ordering of the patches. Just a suggestion. > In this series, I've collected all outstanding tsens patches by combining > the patches from the v2 posting with 3 DT patches for sdm845 thermal zones > and msm8916 camera and gpu thermal zones. Details are as follows: > > - splitup 8916 and 8974 register address spaces for SROT and TM > - cleanups: move to spdx, dead code removal, removal of id field > - Add support to map the SROT address space for DTs that list it separately > - Check if TSENS IP is enabled in firmware by querying the SROT space > - Add myself as maintainer of tsens > - Add one-off patches adding sdm845 thermal zones and msm8916 gpu and > camera thermal zones to this series. > > Changes since v2: > - Split up changes to code and dt and within dt, split into arm and arm64 > patches > - Rearrange the sequence of patches so that the thermal maintainer can pick > up the first part and the platform maintainer can pick up the latter part > of the series > - Drop patch 09/11 because it causes some issues on systems with > non-contiguous enabled sensors e.g. db410c > - Drop patch 10/11 because reg-name property isn't encouraged > - Fix a bug on msm8916 to check if IP is enabled in firmware. This was due > to the register being at a different offset on msm8916. Fixed by coding > this information as private data. > > Changes since v1: > - Split up changes that split the address space and added qcom,sensors > property into two separate patches > - Remove brackets in typo correction patch > > Amit Kucheria (16): > thermal: tsens: Prepare 8916 and 8974 tsens to use SROT and TM address > space > thermal: tsens: Add SPDX license identifiers > thermal: tsens: Get rid of dead code > thermal: tsens: Rename map field in order to add a second address map > thermal: tsens: Add the SROT address map > MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers > thermal: tsens: Pass register offsets as private data > thermal: tsens: Check if the IP is correctly enabled by firmware > arm: dts: msm8974: thermal: split address space into two > arm64: dts: msm8916: thermal: split address space into two > arm: dts: msm8974: thermal: Add "qcom,sensors" property > arm64: dts: msm8916: thermal: Add "qcom,sensors" property > dt-bindings: thermal: Fix a typo in documentation > arm64: dts: msm8916: Add gpu thermal zone > arm64: dts: msm8916: Add camera thermal zone > arm64: dts: sdm845: enable tsens thermal zones > > .../devicetree/bindings/thermal/thermal.txt | 2 +- > MAINTAINERS | 7 + > arch/arm/boot/dts/qcom-msm8974.dtsi | 6 +- > arch/arm64/boot/dts/qcom/msm8916.dtsi | 47 ++++- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 ++++++++++++++++++ > drivers/thermal/qcom/tsens-8916.c | 12 +- > drivers/thermal/qcom/tsens-8960.c | 41 ++--- > drivers/thermal/qcom/tsens-8974.c | 12 +- > drivers/thermal/qcom/tsens-common.c | 62 ++++--- > drivers/thermal/qcom/tsens-v2.c | 8 +- > drivers/thermal/qcom/tsens.c | 19 +- > drivers/thermal/qcom/tsens.h | 23 +-- > 12 files changed, 309 insertions(+), 100 deletions(-) > > -- > 2.17.1 >