Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1279112imm; Wed, 11 Jul 2018 22:05:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeD3bFn3Lm+ueOnbjGp/gGpbVZmfl1iYFXUizvS6QfBMmlO7f33TDZiam38nUd7Kksfx7bJ X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr736773pll.165.1531371927783; Wed, 11 Jul 2018 22:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531371927; cv=none; d=google.com; s=arc-20160816; b=qy2AOAsTQ0jXtToraUTHVGKYgoPfxoT10IYmuwswIhP/c8eykRZKTKJ9Xqoikdbx7i 2TTwT0uYyMkQ35KOKCtfbSO236WwW7jNk08QxloaW1CFhLJ/Ced5v63KgXAjZcNhHQzO ywWCkK56Ju0VmoR3ZfOkhztdY2pce+99Kvla+CsLvD+qFGKRuGN67Cp0c/HxrUGJnDfs rF3A31GLgOiKpeysBWCH3j1+vpBG6djHmqD6aa+aJvLe9sVd6ZQcbQZ/26wucUy5zY2L vydOZkQRpV+a0rN4HNHVh5+eG2u3OtINZsttGiT4a6fgvuVg0CARA1KQL06C8NXIRtCu XzGw== 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 :arc-authentication-results; bh=ufqvxcUy98e9ZkobqyQmGhNUR7lvR6XWEDUj8Oj7DwQ=; b=sUzT6kj9gVLW3LO/XbCsakxZmFfQkrsPLf3mxN6aUjXh0ahBLIeFetSy9gvuGxnTqX GhdNle6qUGaketg8HG4ugDl1RtUWc+Ab+wevw78zgpS6WUHzPdT3E0lG5dtDNNa1FiWf 3spp74SHplvzpqbd22iISw/wNfqkIgOMTOeMz/kS7BFW8Djn3UtsukT/xKuJWWQGNlJy 5ZyPSGt6h9jhHEIlNMo4+N9PIcoRNiGiJXfVqmcOWKeQYMaPIAtIBzD1uYs2AVyi0pGz yluKK0spGyVJDq7gAzyHqCSw/rTgjbyuLfQe3ejHMwQqDh8js8DDx8CZb8W5sjzEV7zo MA/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U2+bOgTn; 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 t1-v6si22218955plb.90.2018.07.11.22.04.59; Wed, 11 Jul 2018 22:05:27 -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=U2+bOgTn; 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 S1726507AbeGLFLp (ORCPT + 99 others); Thu, 12 Jul 2018 01:11:45 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:39468 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeGLFLo (ORCPT ); Thu, 12 Jul 2018 01:11:44 -0400 Received: by mail-qt0-f193.google.com with SMTP id q12-v6so23099248qtp.6 for ; Wed, 11 Jul 2018 22:03:55 -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=ufqvxcUy98e9ZkobqyQmGhNUR7lvR6XWEDUj8Oj7DwQ=; b=U2+bOgTndfEP4T+08xIWCQPZKgqvn8uckcsojv0ksA2BMC+diSzuKGs1AWmcKMQjPQ /OpmADTXBeAQP7FzCCisPPgklzi9UJFeQoI2oywsWWWM9rK/igknlIaspcBhbt2e928z gg/aQXsHjdryrbgq4ACqtSwklEL5YxX0onY+A= 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=ufqvxcUy98e9ZkobqyQmGhNUR7lvR6XWEDUj8Oj7DwQ=; b=rqrAdOjMMVzmrnaqN8arzXtrYJ2Cx+6fOTAefFY3EGcoN84N3ixid+ApNKm9dya2z9 JSn78msuTBUwKaswdzvGuqNpbbTw11pj9QgJcrI9bpuM57ikWL20H/yGCHIUTpAI8KA1 2Ts90x0j/8a9IXFv3HD4eq2l8og5tHFHEfcUs4CuDh84pCWPPbKSu/9Tk0LEIvz5ZhuB o4V6mIVIprf9AywwqZiqDL0OH1qHg79W+CMYNxA5J+PiiBwfBCgx4LhCmgyZJecDrdGD 7bRdW36HNW8BnahC5z1cqz3xynORffIOvXrSBPhQh3ynZ5JXFNJN60XEQtJ++n1SXv+G UfXg== X-Gm-Message-State: AOUpUlGzilIBpW98LJVfQD4Rv1Sa7WwTUbux+K+Lc7P8leKFN4ZX2jal Cnr2yzri19V5PyAlqSycGT4zBc1GLIPnPZ0VKCnxNQ== X-Received: by 2002:a0c:c586:: with SMTP id a6-v6mr743167qvj.188.1531371835037; Wed, 11 Jul 2018 22:03:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kucheria Date: Thu, 12 Jul 2018 10:33:43 +0530 Message-ID: Subject: Re: [PATCH v6 3/7] dt: qcom: 8996: thermal: Move to DT initialisation To: Doug Anderson Cc: Linux Kernel Mailing List , Rajendra Nayak , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , smohanad@codeaurora.org, Vivek Gautam , Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , "open list:ARM/QUALCOMM SUPPORT" , DTML , Lists LAKML 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 On Thu, Jul 12, 2018 at 12:09 AM Doug Anderson wrote: > > Hi, > > On Mon, Jul 9, 2018 at 4:43 AM, Amit Kucheria wrote: > > We also split up the regmap address space into two, one for the TM > > registers, the other for the SROT registers. This was required to deal with > > different address offsets for the TM and SROT registers across different > > SoC families. > > The splitting into two regions is actually optional and that should > probably be mentioned in the commit message. On the contrary, after this refactor, all new platforms with the v2.x.y TSENS IP should use two regions. The only reason for patch 2 is that we're stuck with supporting old 8996/8916 DTs. I'd prefer to phase out support for the old DTs if possible. I don't want to encourage any new bindings with a single address space. > > Since tsens-common.c/init_common() currently only registers one address > > space, the order is important (TM before SROT). This is OK since the code > > doesn't really use the SROT functionality yet. > > Nowhere in the commit message does this say you're also adding a 2nd > block of thermal sensors. It seems like you should say that > somewhere. > > ...and it should also be obvious in ${SUBJECT}. Fixed. > > Signed-off-by: Amit Kucheria > > --- > > arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 +++++++++++- > > 1 file changed, 11 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > index 8c7f9ca..6c8a857 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > @@ -461,7 +461,17 @@ > > > > tsens0: thermal-sensor@4a8000 { > > compatible = "qcom,msm8996-tsens"; > > - reg = <0x4a8000 0x2000>; > > + reg = <0x4a9000 0x1000>, /* TM */ > > + <0x4a8000 0x1000>; /* SROT */ > > Note that the unit address is supposed to match the first "reg" > address, so either these should be reversed or you should update your > node name. AKA your node name should be this now: > > tsens0: thermal-sensor@4a9000 Fixed. > > > + #qcom,sensors = <13>; > > As per my responses to other patches, " #qcom,sensors" is undocumented > and doesn't appear to be read by the driver. This feature was merged earlier. See commit 6d7c70d1cd6526 (thermal: qcom: tsens: Allow number of sensors to come from DT) Regards, Amit