From: Nishanth Menon <nm@ti.com>
To: Keerthy <j-keerthy@ti.com>, edubezval@gmail.com
Cc: linux-omap@vger.kernel.org, rui.zhang@intel.com, t-kristo@ti.com,
linux-pm@vger.kernel.org, Ravikumar Kattekola <rk@ti.com>
Subject: Re: [PATCH] thermal: Switch mode to enabled once the cooling device is bound
Date: Thu, 25 Jun 2015 12:35:30 -0500 [thread overview]
Message-ID: <558C3BE2.9020508@ti.com> (raw)
In-Reply-To: <1435236635-20830-1-git-send-email-j-keerthy@ti.com>
On 06/25/2015 07:50 AM, Keerthy wrote:
> Currently mode is still disabled even after the cooling device is bound
> to the appropriate device. Hence changing the mode to enabled as soon as
> the cooling device is registered successfully.
>
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
> drivers/thermal/of-thermal.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
> index 04b1be7..bc84485 100644
> --- a/drivers/thermal/of-thermal.c
> +++ b/drivers/thermal/of-thermal.c
> @@ -163,6 +163,9 @@ static int of_thermal_bind(struct thermal_zone_device *thermal,
> }
> }
>
> + /* Now that cooling device is bound enable the thermal device*/
> + data->mode = THERMAL_DEVICE_ENABLED;
> +
> return 0;
> }
>
>
This makes sense to me rather than waiting for userspace to enable the
zone -(by which time we might have hit catastrophic thermal events
which may have been prevented if we had the zones enabled and cooling
devices functional.
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2015-06-25 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 12:50 [PATCH] thermal: Switch mode to enabled once the cooling device is bound Keerthy
2015-06-25 17:35 ` Nishanth Menon [this message]
2015-06-26 11:17 ` Javi Merino
2015-06-26 11:49 ` Keerthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=558C3BE2.9020508@ti.com \
--to=nm@ti.com \
--cc=edubezval@gmail.com \
--cc=j-keerthy@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rk@ti.com \
--cc=rui.zhang@intel.com \
--cc=t-kristo@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.