Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp91385imd; Fri, 26 Oct 2018 05:40:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5dqBs756rwMbTG3p0PHs4NxB1nunX5s+fMpiM3SUs/8Qa/YZ7KgJNg6jVB70j8yYgLj+M5K X-Received: by 2002:a62:670f:: with SMTP id b15-v6mr3511269pfc.243.1540557652870; Fri, 26 Oct 2018 05:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540557652; cv=none; d=google.com; s=arc-20160816; b=Y2ATmu/UCh4oMho2l88TRbJPGe3WugP+bPBlhLGZ5DUFPV/Z22XCFSARjx3/57YiaW dZEK1UGlRLgp+3vh+VH2ccO/HLB+vPc8ArUiIV2jLdDb4/eEywMS5RYmVatSjk/0TwBR KtDQ/fpWx0Uk9CCuj96SO8UnYfJG36imroJhPSvEZmZk27XldR998VOg5J1aFV4n7mtb aetwjHTZbL2OUCILIXqMI/RJKqOCQv4nvuthhFfp7YvX7XSMi8RWPqtekIXtsXUqHyS7 G/FnMZcxE4yY/q/ux2Zce4Sz6q/6pHG0ULpmR1lyDsWlLl+ZNm0nL+g3YKehgTndAtP9 qfzQ== 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=apzQIfOMYkBRdFDQicKtJQZxISE1oyAEMzJBC+wIUYw=; b=oJPrFGXBeYgV4Gy7mSwL/5rDDJ3555e3VhtmQloU3qUawMEadnxQo8Wqaazcai7AXZ K6dQWoB3QWHKVGBrlgsQw8gyZxoaIn65zaXkPd3H6/84SGyCevaIcG+20YnznccMeK9P H3Es30WHf4n/+WzfzDmnIwocwan8mv9TkXEMLXj6ID+A0ewwPk2Dbg9xnDCVENl2aMAq /vm9tLHfFMgR3hyl4zMRqAERoyVS2RJBMy4yqdlvyduQnhgJo4eVrnjLXREbhh3DiZgy 1t2IcaVEMTZ4AD1s/BCdAfJeMolfaV4F4IOMKrMb82+TU3R4SX4vEieFHk62mE96z/sv w9lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bXzqn74p; 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 14-v6si11207908pgl.157.2018.10.26.05.40.34; Fri, 26 Oct 2018 05:40:52 -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=bXzqn74p; 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 S1727690AbeJZVRI (ORCPT + 99 others); Fri, 26 Oct 2018 17:17:08 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:36607 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727607AbeJZVRH (ORCPT ); Fri, 26 Oct 2018 17:17:07 -0400 Received: by mail-ua1-f65.google.com with SMTP id w19so348304uaj.3 for ; Fri, 26 Oct 2018 05:40:09 -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=apzQIfOMYkBRdFDQicKtJQZxISE1oyAEMzJBC+wIUYw=; b=bXzqn74pbWKX3ruLLEWAAmVn9AK0FcrTKzoW5V5IEOhC+xCdiuXnNCdywn0fPQDzBR Z0Q52EjUxpeQkM+iLDNX7cxJ9KbQMVWRcBuw7rEEYQToTjbCNmxEJmCK5ohkhqj0ZVaW DKAHfLoB4BPPh4FXiTBwXkngM2wy9195vz0zk= 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=apzQIfOMYkBRdFDQicKtJQZxISE1oyAEMzJBC+wIUYw=; b=L7IHRXXMDXRlt7WzEG88CgYflSzk8KTfnq+Fm2UWvC2aEv5Le9D0XqAg2XxreBsTau +EMDFDdICzIUzL0p67+UuKkCGpfe7F2kVvfLBW9GEszlLMEUtSKk0d3P/VV9QXom57Gz rSVbz03AUJTMsJXEhHxZKjUL+hayznwV2rUXZj2LMI+17jJXwK6x50TcliBBzRjc/+am nYsu1kpauXES92VEBZkrd5Pd1h5BokMy0gto88W9mz9nndBmitU8xrupe4cI0nXplt4N Zjka6EsWz0zDk0DNmovT6guZAG6s7F0rP5klIULUiq7rBrUD7yzoSO0M5ZGWluUSLKm2 yXiQ== X-Gm-Message-State: AGRZ1gKARHs1hTPbWLbCOuYG0AI7LUwemin75sczpoVMAgjgjfCpDKHq 7uy7ZyeAb4nE+mxh7v/RDUYhqWeVgNQyfkpsnsAbgg== X-Received: by 2002:a9f:35a2:: with SMTP id t31mr1396288uad.98.1540557609298; Fri, 26 Oct 2018 05:40:09 -0700 (PDT) MIME-Version: 1.0 References: <1539791563-5959-1-git-send-email-b.zolnierkie@samsung.com> <1539791563-5959-9-git-send-email-b.zolnierkie@samsung.com> In-Reply-To: From: Amit Kucheria Date: Fri, 26 Oct 2018 18:09:58 +0530 Message-ID: Subject: Re: [PATCH v2 08/17] thermal: qcom: tsens: enable+check sensor after its setup is finished To: Bartlomiej Zolnierkiewicz Cc: Zhang Rui , Eduardo Valentin , Eric Anholt , Stefan Wahren , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, Heiko Stuebner , Thierry Reding , Jonathan Hunter , Keerthy , Masahiro Yamada , Jun Nie , Baoyou Xie , Shawn Guo , Linux PM list , LKML 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 Fri, Oct 26, 2018 at 5:41 PM Amit Kucheria wrote: > > On Wed, Oct 17, 2018 at 9:24 PM Bartlomiej Zolnierkiewicz > wrote: > > > > Enable+check sensor after setting tmdev->sensor[i].tzd and calling > > chipset specific enable operation. > > > > Signed-off-by: Bartlomiej Zolnierkiewicz > > --- > > drivers/thermal/qcom/tsens.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c > > index dbd2556..01bff96 100644 > > --- a/drivers/thermal/qcom/tsens.c > > +++ b/drivers/thermal/qcom/tsens.c > > @@ -105,13 +105,13 @@ static int tsens_register(struct tsens_device *tmdev) > > if (IS_ERR(tzd)) > > continue; > > > > - thermal_zone_set_mode(tzd, THERMAL_DEVICE_ENABLED); > > - thermal_zone_device_check(tzd); > > - > > I don't quite understand why you're making this move explicitly in a > separate patch for each of the drivers? You added it here in patch 4 > in the first place, why not add it in the correct place there itself? I think I understand now. You wanted to separate patches causing functional changes from ones that didn't. IMHO, it makes the series a bit hard to read but I have no better suggestion than to squash everything (patches 3-16), but that will make it harder to collect Acks. > > tmdev->sensor[i].tzd = tzd; > > > > if (tmdev->ops->enable) > > tmdev->ops->enable(tmdev, i); > > + > > + thermal_zone_set_mode(tzd, THERMAL_DEVICE_ENABLED); > > + thermal_zone_device_check(tzd); > > > > } > > return 0; > > } > > -- > > 1.9.1 > >