Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp335748imm; Thu, 6 Sep 2018 03:18:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZvH1+ml631YyC0nU2cBhG1sM3GcgOnRovCSCHKcTyh28iXZIeo4MHpkD7et3nOd6p7zp9S X-Received: by 2002:a63:4386:: with SMTP id q128-v6mr1920892pga.353.1536229087421; Thu, 06 Sep 2018 03:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536229087; cv=none; d=google.com; s=arc-20160816; b=v+cyypHPdPrJT1TLdcHJGAx0un1085Irx3oG8tIlV+SoKtrEuz6Jf0/0viu/HPNIbr Lo0fpk8a9vQwMPsSEFwcS7YnAjJ7tdU1TWpeEEqGlIiGl5FzvhCefnZRxYaAlrhCgtkx cWWk8RYUJXZqvnjhxZpXiQ/cXNFLGaW6E/JrQZh+hVSg6dz8LjEJ79PIb2dNiS+DZnF9 i6BTLZ2Vqfw1gxEv/wFsFzJqvzLramtebl2nImbotswtr1OgmvtWpTopnKiq+zvRgiLV ezxpX+/w2GHxSvnpqKx9vOjWAHAPrGekOvwwuNgKF1UJvCcvK2rDhJJxnP86TO96WVD/ yRUQ== 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=9wh+8YnDEoo04B3rlzt4xT71a2v028q4zOps+fl7Qwk=; b=04l3XSNK4Xw+WT9CuPw5NvfY147HErPcNVACz7MOtM3xbMhTwaOV4qp+UK1TwPdmmT nsImj28gv51iLFqXVX4RU3vEvdAL7RuLIt4V/TXJZwsgZ4v37nmM1ZRxGlDD1m1/voxL 2dR/XAvrFhQlMfXtF/o6fUHnTRktc9EjJb/5WSCJ/waJlND2uWc9p91p9D8M5LJNB6ZM R5hfDHTtHBpd7HbEF0M04HwlbgYs9QgpkJLJnO73uXDIWLYA7hPRKnJKWBgUWjlIqUcl /mfH7wSL8Y4hd4oMDuqt+GVjPkvS7KTTdehxtQn323ZMNxAnDZ8nsX+2+BUgwzQwJ5wS 7+7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMZtOGLv; 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 f18-v6si4630994pgi.300.2018.09.06.03.17.52; Thu, 06 Sep 2018 03:18:07 -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=TMZtOGLv; 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 S1728594AbeIFOfh (ORCPT + 99 others); Thu, 6 Sep 2018 10:35:37 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:38101 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728572AbeIFOfh (ORCPT ); Thu, 6 Sep 2018 10:35:37 -0400 Received: by mail-qt0-f193.google.com with SMTP id x7-v6so11528052qtk.5 for ; Thu, 06 Sep 2018 03:00: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=9wh+8YnDEoo04B3rlzt4xT71a2v028q4zOps+fl7Qwk=; b=TMZtOGLvb57EDNmxiGJr0Sku09YNygyeMc7Cee/MlZBYSzUfS6oViHD21BlY12Vaan EuaKgOfcxBb3o5udEtJrZTIjjRB2S7u8OpMYNKFJ7Y+TpCTzKfzzid4Czecl4mJqzROV t4CfRzOCwk/6Q+VMEkEHuvQed47gHe7gWx/w4= 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=9wh+8YnDEoo04B3rlzt4xT71a2v028q4zOps+fl7Qwk=; b=pqufpahk1fcpEmxgXsVVtTB9jFomJFgRx5OYYyY5lQjgP/tUhuXPC+9NLqJs0OMYfu M955FsZmQeMed1VYNCLjjXVmc4A/7hsJmxGaCoNYDP3Nttb50nQiOcFVJEDd1Ipctcja IOxHhmLp9tsMFgGVlV8KF0S9I3vGlTAGRNSHCkUqlCXMN2p1QkkxXCXRACkeNpAKGpF4 51/NuZMAO8bYA6AyUnz6FERaucd/sCZ/Du9oNsb/fbf5GzQLFS3WPhvZh7R9TvY6GIS6 R99P8aEu4zFznDaSVQr5ZZGbiwRBNEHd7QfiBEcKOwv95xK0NLJc86dxM6a9coCZ2dNY mPYg== X-Gm-Message-State: APzg51B1+h7MtlgR80asKrqYcx2DQTqjm/6FCpiuYx+Gva2dROOAhou9 FcpLB/Se94Intf6jC1EdWwQNzrxVDZ0mS3GmvbAOPQ== X-Received: by 2002:ac8:6989:: with SMTP id o9-v6mr1415266qtq.244.1536228054761; Thu, 06 Sep 2018 03:00:54 -0700 (PDT) MIME-Version: 1.0 References: <35c332750fe1eddfa2eb53750b810256310866bd.1535462942.git.amit.kucheria@linaro.org> <20180903204855.GB1437@tuxbook-pro> In-Reply-To: <20180903204855.GB1437@tuxbook-pro> From: Amit Kucheria Date: Thu, 6 Sep 2018 15:30:43 +0530 Message-ID: Subject: Re: [PATCH v2 08/11] thermal: tsens: Check if the IP is correctly enabled by firmware To: Bjorn Andersson Cc: Linux Kernel Mailing List , Rajendra Nayak , linux-arm-msm , Eduardo Valentin , smohanad@codeaurora.org, Andy Gross , Doug Anderson , mka@chromium.org, Zhang Rui , Daniel Lezcano , Linux PM list 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 Tue, Sep 4, 2018 at 2:15 AM Bjorn Andersson wrote: > > On Thu 30 Aug 12:23 PDT 2018, Amit Kucheria wrote: > > > On Tue, Aug 28, 2018 at 7:08 PM, Amit Kucheria wrote: > > > The SROT registers are initialised by the secure firmware at boot. We > > > don't have write access to the registers. Check if the block is enabled > > > before continuing. > > > > > > Signed-off-by: Amit Kucheria > > > Reviewed-by: Matthias Kaehlcke > > > --- > > > drivers/thermal/qcom/tsens-common.c | 17 +++++++++++++++++ > > > 1 file changed, 17 insertions(+) > > > > > > diff --git a/drivers/thermal/qcom/tsens-common.c b/drivers/thermal/qcom/tsens-common.c > > > index 0b8a793f15f4..d250b757d1f0 100644 > > > --- a/drivers/thermal/qcom/tsens-common.c > > > +++ b/drivers/thermal/qcom/tsens-common.c > > > @@ -12,6 +12,11 @@ > > > #include > > > #include "tsens.h" > > > > > > +/* SROT */ > > > +#define CTRL_OFFSET 0x4 > > > > This OFFSET is not constant across the TSENS family and breaks atleast > > one platform in the test below. I have a patch to fix this for all > > platforms, will post it after a bit more testing. > > > > Afaict the other 10 patches can be merged independently of this patch. > > So please make the minor updates and resend them as a separate series, > with the acks/reviews, to make it easier for Eduardo to just pick them. > Will do.