Re: [PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-28 Thread Javi Merino
ubez...@gmail.com; Zhang, Rui; linux- > > ker...@vger.kernel.org; sta...@vger.kernel.org > > Subject: Re: [PATCH 2/3] Thermal: handle thermal zone device properly > > during system sleep > > > > On Sun, Sep 27, 2015 at 06:48:35AM +0100, Chen Yu wrote: > > > From:

RE: [PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-28 Thread Chen, Yu C
bject: Re: [PATCH 2/3] Thermal: handle thermal zone device properly > during system sleep > > On Sun, Sep 27, 2015 at 06:48:35AM +0100, Chen Yu wrote: > > From: Zhang Rui > > > > > > + register_pm_notifier(_pm_nb); > > What if register_pm_notifier() fails?

Re: [PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-28 Thread Javi Merino
On Sun, Sep 27, 2015 at 06:48:35AM +0100, Chen Yu wrote: > From: Zhang Rui > > Current thermal code does not handle system sleep well because > 1. the cooling device cooling state may be changed during suspend > 2. the previous temperature reading becomes invalid after resumed because >it is

Re: [PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-28 Thread Javi Merino
ubez...@gmail.com; Zhang, Rui; linux- > > ker...@vger.kernel.org; sta...@vger.kernel.org > > Subject: Re: [PATCH 2/3] Thermal: handle thermal zone device properly > > during system sleep > > > > On Sun, Sep 27, 2015 at 06:48:35AM +0100, Chen Yu wrote: > > > Fro

RE: [PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-28 Thread Chen, Yu C
bject: Re: [PATCH 2/3] Thermal: handle thermal zone device properly > during system sleep > > On Sun, Sep 27, 2015 at 06:48:35AM +0100, Chen Yu wrote: > > From: Zhang Rui <rui.zh...@intel.com> > > > > > > + register_pm_notifier(_pm_nb); > > What

Re: [PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-28 Thread Javi Merino
On Sun, Sep 27, 2015 at 06:48:35AM +0100, Chen Yu wrote: > From: Zhang Rui > > Current thermal code does not handle system sleep well because > 1. the cooling device cooling state may be changed during suspend > 2. the previous temperature reading becomes invalid after

[PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-26 Thread Chen Yu
From: Zhang Rui Current thermal code does not handle system sleep well because 1. the cooling device cooling state may be changed during suspend 2. the previous temperature reading becomes invalid after resumed because it is got before system sleep 3. updating thermal zone device during

[PATCH 2/3] Thermal: handle thermal zone device properly during system sleep

2015-09-26 Thread Chen Yu
From: Zhang Rui Current thermal code does not handle system sleep well because 1. the cooling device cooling state may be changed during suspend 2. the previous temperature reading becomes invalid after resumed because it is got before system sleep 3. updating thermal