Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly

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

RE: [PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-28 Thread Chen, Yu C
bject: Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly > > On Sun, Sep 27, 2015 at 06:48:28AM +0100, Chen Yu wrote: > > From: Zhang Rui > > > > After thermal zone device registered, as we have not read any > > temperature before, thus tz->te

Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-28 Thread Javi Merino
On Sun, Sep 27, 2015 at 06:48:28AM +0100, Chen Yu wrote: > From: Zhang Rui > > After thermal zone device registered, as we have not read any > temperature before, thus tz->temperature should not be 0, > which actually means 0C, and thermal trend is not available. > In this case, we need

Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-28 Thread Javi Merino
ubez...@gmail.com; Zhang, Rui; linux- > > ker...@vger.kernel.org; sta...@vger.kernel.org > > Subject: Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly > > > > On Sun, Sep 27, 2015 at 06:48:28AM +0100, Chen Yu wrote: > > > From: Zhang Rui <rui.zh...

RE: [PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-28 Thread Chen, Yu C
bject: Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly > > On Sun, Sep 27, 2015 at 06:48:28AM +0100, Chen Yu wrote: > > From: Zhang Rui <rui.zh...@intel.com> > > > > After thermal zone device registered, as we have not read any > > temper

Re: [PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-28 Thread Javi Merino
On Sun, Sep 27, 2015 at 06:48:28AM +0100, Chen Yu wrote: > From: Zhang Rui > > After thermal zone device registered, as we have not read any > temperature before, thus tz->temperature should not be 0, > which actually means 0C, and thermal trend is not available. > In this

[PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-26 Thread Chen Yu
From: Zhang Rui After thermal zone device registered, as we have not read any temperature before, thus tz->temperature should not be 0, which actually means 0C, and thermal trend is not available. In this case, we need specially handling for the first thermal_zone_device_update(). Both thermal

[PATCH 1/3] Thermal: initialize thermal zone device correctly

2015-09-26 Thread Chen Yu
From: Zhang Rui After thermal zone device registered, as we have not read any temperature before, thus tz->temperature should not be 0, which actually means 0C, and thermal trend is not available. In this case, we need specially handling for the first