From: jonghwa3.lee@samsung.com
To: "R, Durgadoss" <durgadoss.r@intel.com>
Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>,
"linux-pml@vger.kernel.org" <linux-pml@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Brown, Len" <len.brown@intel.com>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Andrew Morton <akpm@linux-foundation.org>,
Amit Kachhap <amit.kachhap@linaro.org>,
"Zhang, Rui" <rui.zhang@intel.com>
Subject: Re: [PATCH] Thermal: Fix bug on generic thermal framework.
Date: Mon, 24 Sep 2012 17:20:00 +0900 [thread overview]
Message-ID: <506017B0.6000201@samsung.com> (raw)
In-Reply-To: <4D68720C2E767A4AA6A8796D42C8EB591C98E6@BGSMSX102.gar.corp.intel.com>
On 2012년 09월 24일 17:08, R, Durgadoss wrote:
> Hi,
>
> Patch is fine, but I think you have to re-base on top of
> Rui's -next branch here:
> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git
>
> Also, adding Rui to this mail, not sure whether he is in LKML/pm.
>
> Thanks,
> Durga
I'll re-base and re-post it.
Thanks
>> -----Original Message-----
>> From: Jonghwa Lee [mailto:jonghwa3.lee@samsung.com]
>> Sent: Monday, September 24, 2012 7:36 AM
>> To: linux-pml@vger.kernel.org
>> Cc: linux-kernel@vger.kernel.org; Brown, Len; Rafael J. Wysocki; Andrew
>> Morton; Amit Kachhap; R, Durgadoss; Jonghwa Lee
>> Subject: [PATCH] Thermal: Fix bug on generic thermal framework.
>>
>> When system fails to bind cooling devices to thermal zone device during
>> registering thermal zone device, it leaves registering without canceling
>> delayed work. It probably makes panic if polling rate is not enough to release
>> that work from workqueue. So it is better to ignore initialization of polling
>> work to prevent that unexpected state.
>>
>> Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
>> ---
>> drivers/thermal/thermal_sys.c | 6 ++++--
>> 1 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
>> index 2ab31e4..744e69d 100644
>> --- a/drivers/thermal/thermal_sys.c
>> +++ b/drivers/thermal/thermal_sys.c
>> @@ -1351,12 +1351,14 @@ struct thermal_zone_device
>> *thermal_zone_device_register(const char *type,
>> }
>> mutex_unlock(&thermal_list_lock);
>>
>> + if (result)
>> + goto unregister;
>> +
>> INIT_DELAYED_WORK(&(tz->poll_queue),
>> thermal_zone_device_check);
>>
>> thermal_zone_device_update(tz);
>>
>> - if (!result)
>> - return tz;
>> + return tz;
>>
>> unregister:
>> release_idr(&thermal_tz_idr, &thermal_idr_lock, tz->id);
>> --
>> 1.7.4.1
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2012-09-24 8:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-24 2:05 Jonghwa Lee
2012-09-24 8:08 ` R, Durgadoss
2012-09-24 8:20 ` jonghwa3.lee [this message]
2012-09-24 8:57 ` Zhang Rui
2012-09-25 1:12 ` jonghwa3.lee
2012-09-25 1:58 ` Zhang Rui
2012-09-25 3:04 ` R, Durgadoss
2012-09-25 4:21 ` jonghwa3.lee
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=506017B0.6000201@samsung.com \
--to=jonghwa3.lee@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=amit.kachhap@linaro.org \
--cc=durgadoss.r@intel.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pml@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=rui.zhang@intel.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
Powered by JetHome