Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp61482imd; Fri, 26 Oct 2018 05:12:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5dVnIgM3UH89Di3fq/7/MvY7JE9eBNjmyqny1JxOfXUhipTFBZIxy9pUwzx32mDuQSZlUpm X-Received: by 2002:a62:5b43:: with SMTP id p64-v6mr3536751pfb.122.1540555925054; Fri, 26 Oct 2018 05:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540555925; cv=none; d=google.com; s=arc-20160816; b=f4YpXifZnbErAM+stQyaDlQ6qvlLugDBYjXU+XBnJbHuKXKMDyocWU68hEVogrMXpx I8P+iGvyRyPo4MMUh+IfifsyxCXOlsXEFlNXTjmQuSODWW0u8aDbatqK10TJeeJa4gOm a1bD8HpQfXP1w+IvtdqcdjlkTsuRfZT6AcHR/FZxZZYvPoKfXclyjUFx6nVF9H5UEpvJ gYshlh1QnS660pn3FFNPSM/e/TQbDGyy2FT+NUBGHgrQMStlr5J37xkAIbCmwW4hEbLm IogpG3vaaGFY2CzNOVUFMiAifUov6jWmZSAptD7GgZzGoPTJ1S97Lp1uxEREq0O+HmVV GOHw== 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=C69vTy5yCnmW8KDKcklUcRVhtwRjBrqphYmxYMdm68A=; b=vh3/enRk0jWNxsWbpZF9HoZfynsoVkIonZqEQRuTq9c19/jBygBNO6GIy+rHkzNB2l qH2rNK3nAO5ULrkWBuecWaO7Elzv0gK4Ho7CFf2wMxIxn5s8MwitHqMPipiTuC806U5P clV2ScycVqMirPlPUBB/rMieDkKmA/y4buWs1tHQ4Pb7ua83UBQg9E3MY2SCqvNtvfd3 yEoAN7QwqSePKIcXc1uh/3dUbXVJkMs4wjAy7zDri5R4OvdELD1W+EHGy11h8PIJkmMZ C8vAy84LMhuK3sAdizvjWj77l7WmAkNiwGeJNCK490vHCHA1TfHyKEr4KmwnPQf8pXBB k4BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y/z0Gza6"; 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-v6si9511504pgh.159.2018.10.26.05.11.45; Fri, 26 Oct 2018 05:12:05 -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="Y/z0Gza6"; 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 S1727616AbeJZUsM (ORCPT + 99 others); Fri, 26 Oct 2018 16:48:12 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:42817 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727491AbeJZUsM (ORCPT ); Fri, 26 Oct 2018 16:48:12 -0400 Received: by mail-vs1-f66.google.com with SMTP id e126so539397vsc.9 for ; Fri, 26 Oct 2018 05:11:20 -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=C69vTy5yCnmW8KDKcklUcRVhtwRjBrqphYmxYMdm68A=; b=Y/z0Gza6b2ZIHP7gk7KhT4Qh/EFEc+2rkN0L9zPjxm2B4GQzbAuipRRqeIKy93GNOA CIzRRsVqYBpkqwhXZFR9uopyPAdPiO4DUZP5WfU/9H9inRc0LhPFbBRZRwZ7QuC1xBEB fFVJLPtsH/81BjKzKnzHQkz2sKDT96VF+qaWc= 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=C69vTy5yCnmW8KDKcklUcRVhtwRjBrqphYmxYMdm68A=; b=WCJj79ZGuoj91Y7nRWXx3bQJLIyHhpAvBlf6intnQmctMNUBt1AZMBVfFvp/0poppw 7Ev9o7A9ZxIRBzOl79OodgHHavzWGpH2aiwhcpwpGlc8p7HC2FLjUV5+Pb8NUPGzCu3E ZmsqE21zaOH58v/EpDv/pezNInykEo7vIIY8vdwOfbT/jGFgnAMaq2ttW4yCpMrYymqU z/EL4ihGSXvdFBMwnfKzKpFeqkSaAN5mp/oRvtwQcs8/8vMVInFCoDQ7pUqYxDc2W1fp KW/9bhPOkoxjeZjcB+7JQ2TPhM4tir52nsqWnGfZ/Z6q2+Od/bP8gfN0/xgj8nJMqKxz gE0A== X-Gm-Message-State: AGRZ1gLDgPfRaH7f4NbAmO5B6Kg1c+pESiJ7Nhuvv2JNm7nO1ktsNN8n sMsHcQDdaZK+X8Bub5VMMNJd3C4HebSUfjByBcB1HQ== X-Received: by 2002:a67:4719:: with SMTP id u25mr1382818vsa.27.1540555879206; Fri, 26 Oct 2018 05:11:19 -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: <1539791563-5959-9-git-send-email-b.zolnierkie@samsung.com> From: Amit Kucheria Date: Fri, 26 Oct 2018 17:41:08 +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 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? > 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 >