public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Javi Merino <javi.merino@arm.com>
To: Zhang Rui <rui.zhang@intel.com>
Cc: Linux PM list <linux-pm@vger.kernel.org>,
	eduardo <eduardo.valentin@ti.com>,
	"wni@nvidia.com" <wni@nvidia.com>
Subject: Re: [PATCH] Thermal: thermal zone governor fix
Date: Thu, 27 Feb 2014 13:41:22 +0000	[thread overview]
Message-ID: <20140227134122.GA4417@e102654-lin.cambridge.arm.com> (raw)
In-Reply-To: <1393483668.2637.12.camel@rzhang1-mobl4>

Hi Rui,

On Thu, Feb 27, 2014 at 06:47:48AM +0000, Zhang Rui wrote:
> On Thu, 2014-02-27 at 14:41 +0800, Zhang Rui wrote:
> > From cd587add3043ed7bf3347e5d956f65ec8adf04cf Mon Sep 17 00:00:00 2001
> > From: Zhang Rui <rui.zhang@intel.com>
> > Date: Fri, 24 Jan 2014 10:23:19 +0800
> > Subject: [PATCH] Thermal: thermal zone governor fix
> 
> oops. forgot to attach the updated version.
> 
> thanks,
> rui
> 
> From dff1b207825609e73c7722bc79dda0ea29974931 Mon Sep 17 00:00:00 2001
> From: Zhang Rui <rui.zhang@intel.com>
> Date: Fri, 24 Jan 2014 10:23:19 +0800
> Subject: [PATCH] Thermal: thermal zone governor fix
> 
> This patch does a cleanup about the thermal zone govenor,
> setting and make the following rule.
> 1. For thermal zone devices that are registered w/o tz->tzp,
>    they can use the default thermal governor only.
> 2. For thermal zone devices w/ governor name specified in
>    tz->tzp->governor_name, we will use the default govenor
>    if the governor specified is not available at the moment,
>    and update tz->governor when the matched governor is registered.

Right, but this doesn't solve my problem.  What I was trying to say
was that we should get the default governor if tz->tzp->governor_name
is not initialized.  of_parse_thermal_zones() calls
thermal_zone_device_register() with a tzp that has an empty
governor_name and ends up with no governor.

I'll send a patch that gets you the default governor if you don't
specify a governor_name in tzp and add your patch on top.

Cheers,
Javi


  reply	other threads:[~2014-02-27 13:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-27  6:41 [PATCH] Thermal: thermal zone governor fix Zhang Rui
2014-02-27  6:47 ` Zhang Rui
2014-02-27 13:41   ` Javi Merino [this message]
2014-02-27 13:48     ` [PATCH 1/2] thermal: use the default governor if none was specified in the thermal zone parameters Javi Merino
2014-02-27 13:48       ` [PATCH 2/2] Thermal: thermal zone governor fix Javi Merino
2014-02-27 14:21     ` [PATCH] " Zhang, Rui
  -- strict thread matches above, loose matches on Subject: below --
2014-03-03  5:46 Zhang Rui
2014-03-03 10:00 ` Javi Merino

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=20140227134122.GA4417@e102654-lin.cambridge.arm.com \
    --to=javi.merino@arm.com \
    --cc=eduardo.valentin@ti.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=wni@nvidia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox