Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1717180
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] thermal/drivers/hisi: Remove confusing error message |
| Date | Tue, 22 Aug 2017 10:30:02 +0200 |
| Message-ID | <uhcJs-8b9-9@gated-at.bofh.it> (permalink) |
| References | <u0D3k-5J4-21@gated-at.bofh.it> <uc7AK-4Sk-3@gated-at.bofh.it> <uc9Md-6Rb-1@gated-at.bofh.it> <ucc7o-8sm-11@gated-at.bofh.it> <uccTM-z0-33@gated-at.bofh.it> <ugROG-339-9@gated-at.bofh.it> <uhcq5-83s-1@gated-at.bofh.it> |
| X-Original-To | Leo Yan <leo.yan@linaro.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HNppnjLpaLoFhZ1BR5j7izcSG9/5b6IESc/dbXWYjCc=; b=K9UJeTScwPo1bg8yVWoqisPCKUCOIWmUGRZJZlwoDwFilTyHvqlO3PigIVYj/OasCY n/v9iurWv9amXoeb2x/MgHQgM7wDoUZavLkzZxBMC+QGPkYJ8MwcK5RfdXcKCHVGYQ2U dg7+D8fvr+ib9EDeO9HkvIGc/lJajq7RR4iQc= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HNppnjLpaLoFhZ1BR5j7izcSG9/5b6IESc/dbXWYjCc=; b=OBb5Gdvg8Dg4ENtNIgCINinUE0FMHWsMI4PBiiO6uZKg5dM5KPJS2mvqXXIemcnfb5 LX0gbwJmYv0LYngPbRb/GGaK1njk4LBUPkFXN6HDAE/fxgb9GMn4gjoSpBpg8tP5L9eG qXPTDfJ6OcEh1N2U/tA7PGPeLfGld2s+UeZSSbXiJMWb82Hgvxc/3Z9Z6opvbvBBzq+t SjlUpPsW+9OipKAJGPqBxv7KTtPZTGZz+wnkLj3/Fz/PHwnjV916Iv8Rwi1H3zl4Yqk7 bas4MEJaIqzv+FIUgZWNUBWlGp3IJzdObklXN8IJ4OhbEdSGUGfYFM4NpGvM5hohThD7 E3zg== |
| X-Gm-Message-State | AHYfb5iTkjKd8q/amOiEcvBmBhJMezVYet7MxhrSK3k3AVDhDhV7WgJD X2ONoS4DHHXISHi3 |
| X-Received | by 10.223.139.134 with SMTP id o6mr3807037wra.178.1503390309794; Tue, 22 Aug 2017 01:25:09 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | en-US |
| Content-Transfer-Encoding | 8bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 88 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Zhang Rui <rui.zhang@intel.com>, edubezval@gmail.com, "open list:THERMAL" <linux-pm@vger.kernel.org>, open list <linux-kernel@vger.kernel.org>, kong.kongxinwei@hisilicon.com |
| X-Original-Date | Tue, 22 Aug 2017 10:25:07 +0200 |
| X-Original-Message-ID | <12e90c78-d8dc-5184-17aa-281cd0ad5417@linaro.org> |
| X-Original-References | <1499439833-32531-1-git-send-email-daniel.lezcano@linaro.org> <1502178956.4296.7.camel@intel.com> <46604862-fbb8-8ed1-8b0d-7a51543b3398@linaro.org> <1502196531.4296.41.camel@intel.com> <20170808132955.GB32732@leoy-ThinkPad-T440> <8f58bd6d-0561-7383-6be4-04ee3704099a@linaro.org> <20170822080427.GB13910@leoy-ThinkPad-T440> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1717180 |
Show key headers only | View raw
On 22/08/2017 10:04, Leo Yan wrote:
> Hi Daniel,
>
> On Mon, Aug 21, 2017 at 12:06:17PM +0200, Daniel Lezcano wrote:
>
> [...]
>
>> Hi Leo,
>>
>> a cleanest solution would be either:
>>
>> - add the 3 missing thermal sensors in the DT and default to the id 2
>
> Yeah, so do you think below change works for you?
Isn't it possible to set the delay also ? so we don't have to send
another patch if we want to use one of those instead of 2.
> ---8<---
>
> ARM64: dts: hisilicon: add missed thermal sensors for Hi6220
>
> The thermal driver tries to register four sensors but the DT only binds
> one sensor (sensor ID 2) with thermal zone, as result the thermal driver
> reports failure for missed thermal sensor binding.
>
> This patch adds missed thermal sensor for Hi6220, so can dismiss the
> booting failure log.
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> index eacbe0d..44c2bc7 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> @@ -833,6 +833,18 @@
>
> thermal-zones {
>
> + local: local {
> + polling-delay = <0>;
> + polling-delay-passive = <0>;
> + thermal-sensors = <&tsensor 0>;
> + };
> +
> + cls1: cls1 {
> + polling-delay = <0>;
> + polling-delay-passive = <0>;
> + thermal-sensors = <&tsensor 1>;
> + };
> +
> cls0: cls0 {
> polling-delay = <1000>;
> polling-delay-passive = <100>;
> @@ -862,6 +874,12 @@
> };
> };
> };
> +
> + gpu: gpu {
> + polling-delay = <0>;
> + polling-delay-passive = <0>;
> + thermal-sensors = <&tsensor 3>;
> + };
> };
>
>
>> or
>>
>> - remove all the code assuming 4 sensors and deal with the one unique
>> sensor
>
> I personally prefer to avoid doing this, if only register one unique
> sensor this will let us have no flexiblity for trying multiple sensors
> on this platform.
Ok, I will on the other side give a cleanup in the driver to optimize
the sensors lookup.
Thanks
-- Daniel
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] thermal/drivers/hisi: Remove confusing error message Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-21 12:10 +0200
Re: [PATCH] thermal/drivers/hisi: Remove confusing error message Leo Yan <leo.yan@linaro.org> - 2017-08-22 10:10 +0200
Re: [PATCH] thermal/drivers/hisi: Remove confusing error message Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-22 10:30 +0200
Re: [PATCH] thermal/drivers/hisi: Remove confusing error message Leo Yan <leo.yan@linaro.org> - 2017-08-23 08:20 +0200
csiph-web