GIT PULL] Thermal management updates for v4.10-rc6

2017-01-26 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal Management updates for v4.10-rc6 with top-most commit 3feb479cea37fc623cf4e705631b2e679cbfbd7a:   Revert "thermal: thermal_hwmon: Convert to

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-26 Thread Zhang Rui
On Thu, 2017-01-26 at 18:03 -0800, Guenter Roeck wrote: > On 01/26/2017 05:37 PM, Zhang Rui wrote: > > > > On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: > > > > > > On Wednesday 25 January 2017 12:12:33 Pavel Machek wr

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-26 Thread Zhang Rui
On Thu, 2017-01-26 at 18:03 -0800, Guenter Roeck wrote: > On 01/26/2017 05:37 PM, Zhang Rui wrote: > > > > On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: > > > > > > On Wednesday 25 January 2017 12:12:33 Pavel Machek wr

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-26 Thread Zhang Rui
On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: > On Wednesday 25 January 2017 12:12:33 Pavel Machek wrote: > > > > Hi! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Right. > > > > > > > > > > > > > > Before reverting, can you please try if this patch works > > >

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-26 Thread Zhang Rui
On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: > On Wednesday 25 January 2017 12:12:33 Pavel Machek wrote: > > > > Hi! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Right. > > > > > > > > > > > > > > Before reverting, can you please try if this patch works > > >

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-24 Thread Zhang Rui
On Tue, 2017-01-24 at 21:07 -0200, Fabio Estevam wrote: > On Tue, Jan 24, 2017 at 8:46 PM, Pavel Machek <pa...@ucw.cz> wrote: > > > > > It is an ugly regression and it is -rc5 time. Actually not your > > problem, but Fabio Estevam or Zhang Rui has to deal with

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-24 Thread Zhang Rui
On Tue, 2017-01-24 at 21:07 -0200, Fabio Estevam wrote: > On Tue, Jan 24, 2017 at 8:46 PM, Pavel Machek wrote: > > > > > It is an ugly regression and it is -rc5 time. Actually not your > > problem, but Fabio Estevam or Zhang Rui has to deal with it soon. > I h

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Zhang Rui
sed 'gpio-reset' property > > of node '/ocp@6800/i2c@48072000/tlv320aic3x@19[0]' - status (0) > > [0.833831] tsl2563 2-0029: model 7, rev. 0 > > [0.837768] of_get_named_gpiod_flags: parsed 'enable-gpio' property > > of node '/ocp@68000000/i2c@48072000/lp5523@32[0]' -

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Zhang Rui
sed 'gpio-reset' property > > of node '/ocp@6800/i2c@48072000/tlv320aic3x@19[0]' - status (0) > > [0.833831] tsl2563 2-0029: model 7, rev. 0 > > [0.837768] of_get_named_gpiod_flags: parsed 'enable-gpio' property > > of node '/ocp@68000000/i2c@48072000/lp5523@32[0]'

[GIT PULL] Thermal management updates for v4.10-rc5

2017-01-21 Thread Zhang Rui
the conversion table Fabio Estevam (1):   thermal: thermal_hwmon: Convert to hwmon_device_register_with_info() Jacob von Chorus (1):   thermal: core: move tz->device.groups cleanup to thermal_release Zhang Rui (2):   Merge branch 'fixes' of git://git.kernel.org/.../evalenti/linux-

[GIT PULL] Thermal management updates for v4.10-rc5

2017-01-21 Thread Zhang Rui
the conversion table Fabio Estevam (1):   thermal: thermal_hwmon: Convert to hwmon_device_register_with_info() Jacob von Chorus (1):   thermal: core: move tz->device.groups cleanup to thermal_release Zhang Rui (2):   Merge branch 'fixes' of git://git.kernel.org/.../evalenti/linux-

Re: [PATCH v9 3/3] iio: adc: add support for Allwinner SoCs ADC

2017-01-08 Thread Zhang Rui
Hi, On Sun, 2017-01-08 at 11:17 +, Jonathan Cameron wrote: > On 30/12/16 14:40, Jonathan Cameron wrote: > > > > On 13/12/16 14:33, Quentin Schulz wrote: > > > > > > The Allwinner SoCs all have an ADC that can also act as a > > > touchscreen > > > controller and a thermal sensor. This patch

Re: [PATCH v9 3/3] iio: adc: add support for Allwinner SoCs ADC

2017-01-08 Thread Zhang Rui
Hi, On Sun, 2017-01-08 at 11:17 +, Jonathan Cameron wrote: > On 30/12/16 14:40, Jonathan Cameron wrote: > > > > On 13/12/16 14:33, Quentin Schulz wrote: > > > > > > The Allwinner SoCs all have an ADC that can also act as a > > > touchscreen > > > controller and a thermal sensor. This patch

Re: [GIT PULL] More ACPI updates for v4.10-rc1

2017-01-04 Thread Zhang Rui
On Wed, 2017-01-04 at 09:46 -0800, Linus Torvalds wrote: > On Thu, Dec 22, 2016 at 6:18 AM, Rafael J. Wysocki > wrote: > > > > > > Please pull from the tag > > > >  git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > > \ > >  acpi-extra-4.10-rc1 > I only

Re: [GIT PULL] More ACPI updates for v4.10-rc1

2017-01-04 Thread Zhang Rui
On Wed, 2017-01-04 at 09:46 -0800, Linus Torvalds wrote: > On Thu, Dec 22, 2016 at 6:18 AM, Rafael J. Wysocki > wrote: > > > > > > Please pull from the tag > > > >  git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > > \ > >  acpi-extra-4.10-rc1 > I only just noticed that this

Re: [PATCH] thermal: add thermal_zone_remove_device_groups()

2017-01-03 Thread Zhang Rui
On Wed, 2017-01-04 at 12:35 +0800, Zhang Rui wrote: > On Thu, 2016-12-15 at 16:47 -0500, Yasuaki Ishimatsu wrote: > > > > When offlining all cores on a CPU, the following system panic > > occurs: > > > > BUG: unable to handle kernel NULL pointer dereference

Re: [PATCH] thermal: add thermal_zone_remove_device_groups()

2017-01-03 Thread Zhang Rui
On Wed, 2017-01-04 at 12:35 +0800, Zhang Rui wrote: > On Thu, 2016-12-15 at 16:47 -0500, Yasuaki Ishimatsu wrote: > > > > When offlining all cores on a CPU, the following system panic > > occurs: > > > > BUG: unable to handle kernel NULL pointer dereference

Re: [PATCH] thermal: add thermal_zone_remove_device_groups()

2017-01-03 Thread Zhang Rui
ll cores on CPU and executing > thermal_zone_device_unregister(), the panic occurs in strlen() > called from kernfs_name_hash() because name argument is NULL. > > The patch adds thermal_zone_remove_device_groups() to free > tz->device.groups and set NULL pointer. > > Si

Re: [PATCH] thermal: add thermal_zone_remove_device_groups()

2017-01-03 Thread Zhang Rui
ll cores on CPU and executing > thermal_zone_device_unregister(), the panic occurs in strlen() > called from kernfs_name_hash() because name argument is NULL. > > The patch adds thermal_zone_remove_device_groups() to free > tz->device.groups and set NULL pointer. > > Sign

Re: [RESEND] thermal: hwmon: Properly report critical temperature in sysfs

2016-12-29 Thread Zhang Rui
On Wed, 2016-12-28 at 19:35 +0200, Krzysztof Kozlowski wrote: > In the critical sysfs entry the thermal hwmon was returning wrong > temperature to the user-space.  It was reporting the temperature of > the > first trip point instead of the temperature of critical trip point. > > For example: >

Re: [RESEND] thermal: hwmon: Properly report critical temperature in sysfs

2016-12-29 Thread Zhang Rui
On Wed, 2016-12-28 at 19:35 +0200, Krzysztof Kozlowski wrote: > In the critical sysfs entry the thermal hwmon was returning wrong > temperature to the user-space.  It was reporting the temperature of > the > first trip point instead of the temperature of critical trip point. > > For example: >

[GIT PULL] Thermal management updates for v4.10-rc1

2016-12-13 Thread Zhang Rui
temp: Move work into package struct   thermal/x86_pkg_temp: Sanitize package management Zhang Rui (1):   Merge branches 'thermal-core', 'thermal-intel', 'thermal-soc- fixes' and 'thermal-reorg' into next  .../bindings/thermal/rockchip-thermal.txt  |3

[GIT PULL] Thermal management updates for v4.10-rc1

2016-12-13 Thread Zhang Rui
temp: Move work into package struct   thermal/x86_pkg_temp: Sanitize package management Zhang Rui (1):   Merge branches 'thermal-core', 'thermal-intel', 'thermal-soc- fixes' and 'thermal-reorg' into next  .../bindings/thermal/rockchip-thermal.txt  |3

[GIT PULL] Thermal management updates for v4.10-rc1

2016-12-12 Thread Zhang Rui
temp: Move work into package struct   thermal/x86_pkg_temp: Sanitize package management Zhang Rui (1):   Merge branches 'thermal-core', 'thermal-intel', 'thermal-soc- fixes' and 'thermal-reorg' into next  .../bindings/thermal/rockchip-thermal.txt  |3

[GIT PULL] Thermal management updates for v4.10-rc1

2016-12-12 Thread Zhang Rui
temp: Move work into package struct   thermal/x86_pkg_temp: Sanitize package management Zhang Rui (1):   Merge branches 'thermal-core', 'thermal-intel', 'thermal-soc- fixes' and 'thermal-reorg' into next  .../bindings/thermal/rockchip-thermal.txt  |3

Re: [PATCH] MAINTAINERS: Samsung: Update maintainer for PWM FAN and SAMSUNG THERMAL

2016-12-12 Thread Zhang Rui
On Mon, 2016-12-12 at 08:33 -0800, Guenter Roeck wrote: > On Mon, Dec 12, 2016 at 04:09:45PM +0100, Lukasz Majewski wrote: > > > > Since I leave Samsung, I would like to step down from maintenance > > duties. > > Bartek Zolnierkiewicz will replace. > > > > Signed-off-by: Lukasz Majewski

Re: [PATCH] MAINTAINERS: Samsung: Update maintainer for PWM FAN and SAMSUNG THERMAL

2016-12-12 Thread Zhang Rui
On Mon, 2016-12-12 at 08:33 -0800, Guenter Roeck wrote: > On Mon, Dec 12, 2016 at 04:09:45PM +0100, Lukasz Majewski wrote: > > > > Since I leave Samsung, I would like to step down from maintenance > > duties. > > Bartek Zolnierkiewicz will replace. > > > > Signed-off-by: Lukasz Majewski > For

Re: [PATCH] Fix multiple definition error under lto

2016-12-11 Thread Zhang Rui
On Sat, 2016-11-26 at 17:25 -0500, Peter Foley wrote: > drivers/thermal/built-in.o: In function `type_show.lto_priv.33': > (.text+0x3d80): multiple definition of `type_show.lto_priv.33' > drivers/base/built-in.o:(.text+0x2a40): first defined here > can you illustrate how to reproduce this

Re: [PATCH] Fix multiple definition error under lto

2016-12-11 Thread Zhang Rui
On Sat, 2016-11-26 at 17:25 -0500, Peter Foley wrote: > drivers/thermal/built-in.o: In function `type_show.lto_priv.33': > (.text+0x3d80): multiple definition of `type_show.lto_priv.33' > drivers/base/built-in.o:(.text+0x2a40): first defined here > can you illustrate how to reproduce this

Re: [patch V2 00/12] thermal/x86_pkg_temp: Sanitize hotplug and locking

2016-11-30 Thread Zhang Rui
On Tue, 2016-11-22 at 12:51 -0700, Pandruvada, Srinivas wrote: > On Tue, 2016-11-22 at 17:57 +, Thomas Gleixner wrote: > > > > Changes vs. V1: Fix the package removal wreckage reported by > > Srinivas > > > I haven't looked at individual patch but tested the series as a > whole.  > > So

Re: [patch V2 00/12] thermal/x86_pkg_temp: Sanitize hotplug and locking

2016-11-30 Thread Zhang Rui
On Tue, 2016-11-22 at 12:51 -0700, Pandruvada, Srinivas wrote: > On Tue, 2016-11-22 at 17:57 +, Thomas Gleixner wrote: > > > > Changes vs. V1: Fix the package removal wreckage reported by > > Srinivas > > > I haven't looked at individual patch but tested the series as a > whole.  > > So

Re: [PATCH 2/3] thermal: rockchip: improve conversion error messages

2016-11-21 Thread Zhang Rui
On Tue, 2016-11-22 at 09:51 +0800, Caesar Wang wrote: > 在 2016年11月19日 11:31, Caesar Wang 写道: > > > > Brian, > > > > 在 2016年11月19日 07:52, Brian Norris 写道: > > > > > > These error messages don't give much information about what went > > > wrong. > > > It would be nice, for one, to see what

Re: [PATCH 2/3] thermal: rockchip: improve conversion error messages

2016-11-21 Thread Zhang Rui
On Tue, 2016-11-22 at 09:51 +0800, Caesar Wang wrote: > 在 2016年11月19日 11:31, Caesar Wang 写道: > > > > Brian, > > > > 在 2016年11月19日 07:52, Brian Norris 写道: > > > > > > These error messages don't give much information about what went > > > wrong. > > > It would be nice, for one, to see what

Re: [PATCH 1/3] thermal: handle get_temp() errors properly

2016-11-21 Thread Zhang Rui
Hi, Brian, On Fri, 2016-11-18 at 21:30 -0800, Brian Norris wrote: > Hi, > > On Fri, Nov 18, 2016 at 07:41:59PM -0800, Eduardo Valentin wrote: > > > > On Fri, Nov 18, 2016 at 03:52:55PM -0800, Brian Norris wrote: > > > > > > If using CONFIG_THERMAL_EMULATION, there's a corner case where we > >

Re: [PATCH 1/3] thermal: handle get_temp() errors properly

2016-11-21 Thread Zhang Rui
Hi, Brian, On Fri, 2016-11-18 at 21:30 -0800, Brian Norris wrote: > Hi, > > On Fri, Nov 18, 2016 at 07:41:59PM -0800, Eduardo Valentin wrote: > > > > On Fri, Nov 18, 2016 at 03:52:55PM -0800, Brian Norris wrote: > > > > > > If using CONFIG_THERMAL_EMULATION, there's a corner case where we > >

Re: [PATCH] thermal/powerclamp: add back module device table

2016-11-21 Thread Zhang Rui
On Mon, 2016-11-21 at 08:13 +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 21, 2016 at 11:43:10AM +0800, Zhang Rui wrote: > > > > On Thu, 2016-11-17 at 11:42 -0800, Jacob Pan wrote: > > > > > > On Tue, 15 Nov 2016 08:03:32 +0100 > > > Greg Kroah-

Re: [PATCH] thermal/powerclamp: add back module device table

2016-11-21 Thread Zhang Rui
On Mon, 2016-11-21 at 08:13 +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 21, 2016 at 11:43:10AM +0800, Zhang Rui wrote: > > > > On Thu, 2016-11-17 at 11:42 -0800, Jacob Pan wrote: > > > > > > On Tue, 15 Nov 2016 08:03:32 +010

Re: [PATCH] thermal/powerclamp: add back module device table

2016-11-20 Thread Zhang Rui
On Thu, 2016-11-17 at 11:42 -0800, Jacob Pan wrote: > On Tue, 15 Nov 2016 08:03:32 +0100 > Greg Kroah-Hartman wrote: > > > > > On Mon, Nov 14, 2016 at 11:08:45AM -0800, Jacob Pan wrote: > > > > > > Commit 3105f234e0aba43e44e277c20f9b32ee8add43d4 replaced module > >

Re: [PATCH] thermal/powerclamp: add back module device table

2016-11-20 Thread Zhang Rui
On Thu, 2016-11-17 at 11:42 -0800, Jacob Pan wrote: > On Tue, 15 Nov 2016 08:03:32 +0100 > Greg Kroah-Hartman wrote: > > > > > On Mon, Nov 14, 2016 at 11:08:45AM -0800, Jacob Pan wrote: > > > > > > Commit 3105f234e0aba43e44e277c20f9b32ee8add43d4 replaced module > > > cpu id table with a cpu

Re: [PATCH 2/3] thermal: hisilicon: fix for dependency

2016-11-15 Thread Zhang Rui
On Sat, 2016-11-12 at 20:05 +0800, Leo Yan wrote: > Hi Rui, Eduardo, > > On Wed, Aug 31, 2016 at 04:50:16PM +0800, Leo Yan wrote: > > > > The thermal driver is standalone driver which is used to enable > > thermal sensors, so it can be used with any cooling device and > > should not bind with

Re: [PATCH 2/3] thermal: hisilicon: fix for dependency

2016-11-15 Thread Zhang Rui
On Sat, 2016-11-12 at 20:05 +0800, Leo Yan wrote: > Hi Rui, Eduardo, > > On Wed, Aug 31, 2016 at 04:50:16PM +0800, Leo Yan wrote: > > > > The thermal driver is standalone driver which is used to enable > > thermal sensors, so it can be used with any cooling device and > > should not bind with

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-11-15 Thread Zhang Rui
On Mon, 2016-11-14 at 11:12 -0800, Jacob Pan wrote: > On Fri, 11 Nov 2016 18:34:10 +0100 > Petr Mladek wrote: > > > > > Please, let me known if I should do this as a separate patch > > and/or resend the patchset. > Rui/Eduardo, > There are four independent posted changes made

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-11-15 Thread Zhang Rui
On Mon, 2016-11-14 at 11:12 -0800, Jacob Pan wrote: > On Fri, 11 Nov 2016 18:34:10 +0100 > Petr Mladek wrote: > > > > > Please, let me known if I should do this as a separate patch > > and/or resend the patchset. > Rui/Eduardo, > There are four independent posted changes made to powerclamp

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-05 Thread Zhang Rui
On Fri, 2016-11-04 at 23:16 +0100, Pavel Machek wrote: > Hi! > > > > > I'd prefer mails over bugzilla for now... > > > > 4.9-rc2 has bios_limit: > > > > pavel@duo:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit > > 1833000 > > > > and it has thermal zones: > > > >

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-05 Thread Zhang Rui
On Fri, 2016-11-04 at 23:16 +0100, Pavel Machek wrote: > Hi! > > > > > I'd prefer mails over bugzilla for now... > > > > 4.9-rc2 has bios_limit: > > > > pavel@duo:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit > > 1833000 > > > > and it has thermal zones: > > > >

Re: Regression in intel_powerclamp, due to cpu whitelist removal

2016-10-19 Thread Zhang Rui
On Wed, 2016-10-19 at 20:45 -0700, Jacob Pan wrote: > On Tue, 18 Oct 2016 14:20:49 + > Alok Kataria wrote: > > > > > Hi Jacob, Zhang,  > > > > One of your recent commit "thermal/powerclamp: remove cpu > > whitelist” [1], has caused a regression in the kernel.  > > > >

Re: Regression in intel_powerclamp, due to cpu whitelist removal

2016-10-19 Thread Zhang Rui
On Wed, 2016-10-19 at 20:45 -0700, Jacob Pan wrote: > On Tue, 18 Oct 2016 14:20:49 + > Alok Kataria wrote: > > > > > Hi Jacob, Zhang,  > > > > One of your recent commit "thermal/powerclamp: remove cpu > > whitelist” [1], has caused a regression in the kernel.  > > > > That commit changed

Re: [PATCH] of: thermal: Fixed governor at each thermal zone

2016-09-27 Thread Zhang Rui
Hi, Javi, Lukasz and Eduardo, thanks for your input. thanks, rui On 二, 2016-09-27 at 06:22 -0700, Eduardo Valentin wrote: > Hello, Lukasz, Inhyuk, Javi, > > On Tue, Sep 27, 2016 at 12:52:04PM +0100, Lukasz Luba wrote: > > > > > > On 27/09/16 02:46, Zhang Rui wrote:

Re: [PATCH] of: thermal: Fixed governor at each thermal zone

2016-09-27 Thread Zhang Rui
Hi, Javi, Lukasz and Eduardo, thanks for your input. thanks, rui On 二, 2016-09-27 at 06:22 -0700, Eduardo Valentin wrote: > Hello, Lukasz, Inhyuk, Javi, > > On Tue, Sep 27, 2016 at 12:52:04PM +0100, Lukasz Luba wrote: > > > > > > On 27/09/16 02:46, Zhang Rui wrote:

Re: [PATCH] of: thermal: Fixed governor at each thermal zone

2016-09-26 Thread Zhang Rui
On 一, 2016-09-19 at 10:18 +0900, Inhyuk Kang wrote: > It is necessary to be added governor at each thermal_zone. > Because some governors should be operated in the during the kernel > booting > in order to avoid heating problem. > > Default governor cannot be covered all thermal zones policy

Re: [PATCH] of: thermal: Fixed governor at each thermal zone

2016-09-26 Thread Zhang Rui
On 一, 2016-09-19 at 10:18 +0900, Inhyuk Kang wrote: > It is necessary to be added governor at each thermal_zone. > Because some governors should be operated in the during the kernel > booting > in order to avoid heating problem. > > Default governor cannot be covered all thermal zones policy

Re: [PATCH V2 1/7] dt-bindings: Update QorIQ TMU thermal bindings

2016-09-18 Thread Zhang Rui
; > Changes for V2: > > > * Remove formatting chnages. > > > > > >  Documentation/devicetree/bindings/thermal/qoriq-thermal.txt | 7 > > > +++ > > >  1 file changed, 7 insertions(+) > > Acked-by: Rob Herring <r...@kernel.org> > Hi Zhang

Re: [PATCH V2 1/7] dt-bindings: Update QorIQ TMU thermal bindings

2016-09-18 Thread Zhang Rui
atting chnages. > > > > > >  Documentation/devicetree/bindings/thermal/qoriq-thermal.txt | 7 > > > +++ > > >  1 file changed, 7 insertions(+) > > Acked-by: Rob Herring > Hi Zhang Rui, > > Since you have applied the driver patch, can yo

[GIT PULL] Thermal management updates for v4.8-rc6

2016-09-07 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal Management updates for v4.8-rc6 with top-most commit 87260d3f7aecba9a5fadc6886c338b2a8fccfca9:   thermal: rcar_thermal: Fix priv->zone error handling (2016-09-06

[GIT PULL] Thermal management updates for v4.8-rc6

2016-09-07 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal Management updates for v4.8-rc6 with top-most commit 87260d3f7aecba9a5fadc6886c338b2a8fccfca9:   thermal: rcar_thermal: Fix priv->zone error handling (2016-09-06

Re: [Thermal] Need confirmation for the pending thermal soc patches

2016-09-06 Thread Zhang Rui
On 二, 2016-09-06 at 12:13 +0200, Geert Uytterhoeven wrote: > Hi Eduardo, > > On Mon, Sep 5, 2016 at 3:16 PM, Eduardo Valentin <edubez...@gmail.com > > wrote: > > > > On Sun, Aug 21, 2016 at 10:09:00PM +0800, Zhang Rui wrote: > > > > > > As

Re: [Thermal] Need confirmation for the pending thermal soc patches

2016-09-06 Thread Zhang Rui
On 二, 2016-09-06 at 12:13 +0200, Geert Uytterhoeven wrote: > Hi Eduardo, > > On Mon, Sep 5, 2016 at 3:16 PM, Eduardo Valentin > wrote: > > > > On Sun, Aug 21, 2016 at 10:09:00PM +0800, Zhang Rui wrote: > > > > > > As Eduardo is quite busy recen

Re: [PATCH 2/5 v2] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver

2016-09-05 Thread Zhang Rui
On 六, 2016-09-03 at 05:25 +, Khiem Nguyen wrote: > Signed-off-by: Hien Dang > Signed-off-by: Thao Nguyen > Signed-off-by: Khiem Nguyen Well, I can only see patch 4/5, 5/5 in patchwork but I can not see

Re: [PATCH 2/5 v2] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver

2016-09-05 Thread Zhang Rui
On 六, 2016-09-03 at 05:25 +, Khiem Nguyen wrote: > Signed-off-by: Hien Dang > Signed-off-by: Thao Nguyen > Signed-off-by: Khiem Nguyen Well, I can only see patch 4/5, 5/5 in patchwork but I can not see this one thanks, rui > --- > > v2: >  * Set static function for

Re: [PATCH] thermal: armada: add support for suspend/resume

2016-09-05 Thread Zhang Rui
On 五, 2016-08-19 at 21:06 +0800, Zhang Rui wrote: > On 四, 2016-07-21 at 12:43 +0200, Grzegorz Jaszczyk wrote: > > > > There is no need to implement subroutine for suspend since there is > > no > > data to store before suspending. > > > > Signed-off-b

Re: [PATCH] thermal: armada: add support for suspend/resume

2016-09-05 Thread Zhang Rui
On 五, 2016-08-19 at 21:06 +0800, Zhang Rui wrote: > On 四, 2016-07-21 at 12:43 +0200, Grzegorz Jaszczyk wrote: > > > > There is no need to implement subroutine for suspend since there is > > no > > data to store before suspending. > > > > Signed-off-by: Grze

Re: [PATCH v2 3/3] arm: dts: thermal: add thermal/auxadc node.

2016-09-05 Thread Zhang Rui
On 二, 2016-09-06 at 08:24 +0800, Zhang Rui wrote: > On 四, 2016-08-18 at 11:50 +0800, Dawei Chien wrote: > > > > This adds the thermal controller and auxadc nodes > > to the Mediatek MT2701 dtsi file. > > > > Signed-off-by: Dawei Chien <dawei.ch...@mediate

Re: [PATCH v2 3/3] arm: dts: thermal: add thermal/auxadc node.

2016-09-05 Thread Zhang Rui
On 二, 2016-09-06 at 08:24 +0800, Zhang Rui wrote: > On 四, 2016-08-18 at 11:50 +0800, Dawei Chien wrote: > > > > This adds the thermal controller and auxadc nodes > > to the Mediatek MT2701 dtsi file. > > > > Signed-off-by: Dawei Chien > >

Re: [PATCH v2 3/3] arm: dts: thermal: add thermal/auxadc node.

2016-09-05 Thread Zhang Rui
On 四, 2016-08-18 at 11:50 +0800, Dawei Chien wrote: > This adds the thermal controller and auxadc nodes > to the Mediatek MT2701 dtsi file. > > Signed-off-by: Dawei Chien > --- > This patch depned on: > https://patchwork.kernel.org/patch/9249589/ >

Re: [PATCH v2 3/3] arm: dts: thermal: add thermal/auxadc node.

2016-09-05 Thread Zhang Rui
On 四, 2016-08-18 at 11:50 +0800, Dawei Chien wrote: > This adds the thermal controller and auxadc nodes > to the Mediatek MT2701 dtsi file. > > Signed-off-by: Dawei Chien > --- > This patch depned on: > https://patchwork.kernel.org/patch/9249589/ > https://patchwork.kernel.org/patch/9249589/

Re: [PATCH] ACPI / button: add support for tablet mode switch

2016-08-31 Thread Zhang Rui
On 三, 2016-08-31 at 15:33 +0800, Wei-Ning Huang wrote: > From: Wei-Ning Huang > > ACPI PNP device HID 'PNP0C60' is a device that indicates tablet mode > status. Add support for mapping this device to the SW_TABLET_MODE > input > event. > > Signed-off-by: Wei-Ning Huang

Re: [PATCH] ACPI / button: add support for tablet mode switch

2016-08-31 Thread Zhang Rui
On 三, 2016-08-31 at 15:33 +0800, Wei-Ning Huang wrote: > From: Wei-Ning Huang > > ACPI PNP device HID 'PNP0C60' is a device that indicates tablet mode > status. Add support for mapping this device to the SW_TABLET_MODE > input > event. > > Signed-off-by: Wei-Ning Huang > --- >  

Re: [PATCH] thermal: hisilicon: fix COMPILE_TEST dependencies

2016-08-28 Thread Zhang Rui
On 五, 2016-08-26 at 17:44 +0200, Arnd Bergmann wrote: > As we now 'select STUB_CLK_HI6220', all dependencies for that driver > have > to be present in order to enable HISI_THERMAL, as pointed out by > Kconfig: > > warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet > direct

Re: [PATCH] thermal: hisilicon: fix COMPILE_TEST dependencies

2016-08-28 Thread Zhang Rui
On 五, 2016-08-26 at 17:44 +0200, Arnd Bergmann wrote: > As we now 'select STUB_CLK_HI6220', all dependencies for that driver > have > to be present in order to enable HISI_THERMAL, as pointed out by > Kconfig: > > warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet > direct

[GIT PULL] Thermal management updates for v4.8-rc4

2016-08-25 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal Management updates for v4.8-rc4 with top-most commit 829bc78aa7628e81a9de717316b85cbee3c5eb86:   thermal: imx: fix a possible NULL dereference (2016-08-19 21:34:08

[GIT PULL] Thermal management updates for v4.8-rc4

2016-08-25 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal Management updates for v4.8-rc4 with top-most commit 829bc78aa7628e81a9de717316b85cbee3c5eb86:   thermal: imx: fix a possible NULL dereference (2016-08-19 21:34:08

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Zhang Rui
On 三, 2016-08-24 at 08:17 +, Kuninori Morimoto wrote: > Hi Zhang > > > > > > > > > > > > > > From: Kuninori Morimoto > > > > > > > > rcar-thermal is supporting both > > > > thermal_zone_of_sensor_register() > > > > and > > > >

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Zhang Rui
On 三, 2016-08-24 at 08:17 +, Kuninori Morimoto wrote: > Hi Zhang > > > > > > > > > > > > > > From: Kuninori Morimoto > > > > > > > > rcar-thermal is supporting both > > > > thermal_zone_of_sensor_register() > > > > and > > > > thermal_zone_device_register(). But > > > >

Re: linux-next: build warning after merge of the thermal tree

2016-08-24 Thread Zhang Rui
On 三, 2016-08-24 at 13:38 +1000, Stephen Rothwell wrote: > Hi Zhang, > > After merging the thermal tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet > direct dependencies (COMMON_CLK &&

Re: linux-next: build warning after merge of the thermal tree

2016-08-24 Thread Zhang Rui
On 三, 2016-08-24 at 13:38 +1000, Stephen Rothwell wrote: > Hi Zhang, > > After merging the thermal tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet > direct dependencies (COMMON_CLK &&

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Zhang Rui
On 五, 2016-08-19 at 19:35 +0800, Zhang Rui wrote: > On 二, 2016-07-19 at 10:01 +, Kuninori Morimoto wrote: > > > > From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > > > > rcar-thermal is supporting both thermal_zone_of_sensor_register() > &g

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Zhang Rui
On 五, 2016-08-19 at 19:35 +0800, Zhang Rui wrote: > On 二, 2016-07-19 at 10:01 +, Kuninori Morimoto wrote: > > > > From: Kuninori Morimoto > > > > rcar-thermal is supporting both thermal_zone_of_sensor_register() > > and

Re: [PATCH] thermal: rcar_thermal: don't call thermal_zone_device_unregister when USE_OF_THERMAL

2016-08-22 Thread Zhang Rui
On 一, 2016-08-22 at 03:19 +, Kuninori Morimoto wrote: > From: Bui Duc Phuc > > devm_thermal_zone_of_sensor_register() case doesn't need to call > thermal_zone_device_unregister(). > Otherwise, rcar-thermal can't register thermal zone again after > rebind. > This patch

Re: [PATCH] thermal: rcar_thermal: don't call thermal_zone_device_unregister when USE_OF_THERMAL

2016-08-22 Thread Zhang Rui
On 一, 2016-08-22 at 03:19 +, Kuninori Morimoto wrote: > From: Bui Duc Phuc > > devm_thermal_zone_of_sensor_register() case doesn't need to call > thermal_zone_device_unregister(). > Otherwise, rcar-thermal can't register thermal zone again after > rebind. > This patch fixes it. > >

[Thermal] Need confirmation for the pending thermal soc patches

2016-08-21 Thread Zhang Rui
Hi, As Eduardo is quite busy recently, I will take all the thermal soc driver changes this time. Currently, I have cherry picked all the patches that Eduardo has already applied in thermal-soc tree and reviewed all the pending patches in patchwork. Now, there are four patches queued for next -rc

[Thermal] Need confirmation for the pending thermal soc patches

2016-08-21 Thread Zhang Rui
Hi, As Eduardo is quite busy recently, I will take all the thermal soc driver changes this time. Currently, I have cherry picked all the patches that Eduardo has already applied in thermal-soc tree and reviewed all the pending patches in patchwork. Now, there are four patches queued for next -rc

Re: [PATCH v2] thermal: imx: depend on imx SoC arch

2016-08-21 Thread Zhang Rui
On 六, 2016-08-20 at 08:43 +0800, Shawn Guo wrote: > On Wed, May 25, 2016 at 9:45 PM, Peter Robinson > wrote: > > > > Not much use unless the SoC is selected so depend on the ARCH_MXC > > and COMPILE_TEST like all the other thermal drivers. > > > > v2: drop extraneous OF >

Re: [PATCH v2] thermal: imx: depend on imx SoC arch

2016-08-21 Thread Zhang Rui
On 六, 2016-08-20 at 08:43 +0800, Shawn Guo wrote: > On Wed, May 25, 2016 at 9:45 PM, Peter Robinson > wrote: > > > > Not much use unless the SoC is selected so depend on the ARCH_MXC > > and COMPILE_TEST like all the other thermal drivers. > > > > v2: drop extraneous OF > > > > Signed-off-by:

Re: [PATCH] thermal: imx: fix a possible NULL dereference

2016-08-19 Thread Zhang Rui
On 二, 2016-08-16 at 10:51 +0200, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 472: > data->socdata = of_id->data; > > For fixing this problem, we use of_device_get_match_data(), this will > simplify the code a little by using a

Re: [PATCH] thermal: imx: fix a possible NULL dereference

2016-08-19 Thread Zhang Rui
On 二, 2016-08-16 at 10:51 +0200, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 472: > data->socdata = of_id->data; > > For fixing this problem, we use of_device_get_match_data(), this will > simplify the code a little by using a

Re: [PATCH] Thermal-INT3406: Delete owner assignment

2016-08-19 Thread Zhang Rui
On 一, 2016-08-15 at 11:30 +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 15 Aug 2016 11:22:40 +0200 > > The field "owner" is set by core. Thus delete an extra > initialisation. > > Generated by:

Re: [PATCH] Thermal-INT3406: Delete owner assignment

2016-08-19 Thread Zhang Rui
On 一, 2016-08-15 at 11:30 +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 15 Aug 2016 11:22:40 +0200 > > The field "owner" is set by core. Thus delete an extra > initialisation. > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci > Signed-off-by: Markus

Re: [PATCH 1/2] thermal: rockchip: enhance the tsadc's bandgap feature for rk3399

2016-08-19 Thread Zhang Rui
nd then the tsadc can sense the temperature more precisely. > > Obsolete codes are removed as well. > > Signed-off-by: Rocky Hao <rocky@rock-chips.com> > Signed-off-by: Caesar Wang <w...@rock-chips.com> > Cc: Eduardo Valentin <edubez...@gmail.com> > Cc: Zha

Re: [PATCH 1/2] thermal: rockchip: enhance the tsadc's bandgap feature for rk3399

2016-08-19 Thread Zhang Rui
rature more precisely. > > Obsolete codes are removed as well. > > Signed-off-by: Rocky Hao > Signed-off-by: Caesar Wang > Cc: Eduardo Valentin > Cc: Zhang Rui > Cc: Heiko Stuebner > Cc: linux...@vger.kernel.org Both patches applied and queued for 4.9. thanks, ru

Re: [PATCH] thermal: armada: add support for suspend/resume

2016-08-19 Thread Zhang Rui
On 四, 2016-07-21 at 12:43 +0200, Grzegorz Jaszczyk wrote: > There is no need to implement subroutine for suspend since there is > no > data to store before suspending. > > Signed-off-by: Grzegorz Jaszczyk Ezequiel, what do you think of this patch? thanks, rui > --- >  

Re: [PATCH] thermal: armada: add support for suspend/resume

2016-08-19 Thread Zhang Rui
On 四, 2016-07-21 at 12:43 +0200, Grzegorz Jaszczyk wrote: > There is no need to implement subroutine for suspend since there is > no > data to store before suspending. > > Signed-off-by: Grzegorz Jaszczyk Ezequiel, what do you think of this patch? thanks, rui > --- >  

Re: [PATCH] thermal: qcom: tsens-8916: mark PM functions __maybe_unused

2016-08-19 Thread Zhang Rui
On 一, 2016-07-04 at 15:12 +0200, Arnd Bergmann wrote: > The newly added tsens-8916 driver produces warnings when CONFIG_PM > is disabled: > > drivers/thermal/qcom/tsens.c:53:12: error: 'tsens_resume' defined but > not used [-Werror=unused-function] >  static int tsens_resume(struct device *dev) >

Re: [PATCH] thermal: qcom: tsens-8916: mark PM functions __maybe_unused

2016-08-19 Thread Zhang Rui
On 一, 2016-07-04 at 15:12 +0200, Arnd Bergmann wrote: > The newly added tsens-8916 driver produces warnings when CONFIG_PM > is disabled: > > drivers/thermal/qcom/tsens.c:53:12: error: 'tsens_resume' defined but > not used [-Werror=unused-function] >  static int tsens_resume(struct device *dev) >

Re: [PATCH V2 7/7] thermal: qoriq: Add thermal management support

2016-08-19 Thread Zhang Rui
On 四, 2016-06-30 at 11:08 +0800, Jia Hongtao wrote: > This driver add thermal management support by enabling TMU (Thermal > Monitoring Unit) on QorIQ platform. > > It's based on thermal of framework: > - Trip points defined in device tree. > - Cpufreq as cooling device registered in qoriq cpufreq

Re: [PATCH V2 7/7] thermal: qoriq: Add thermal management support

2016-08-19 Thread Zhang Rui
On 四, 2016-06-30 at 11:08 +0800, Jia Hongtao wrote: > This driver add thermal management support by enabling TMU (Thermal > Monitoring Unit) on QorIQ platform. > > It's based on thermal of framework: > - Trip points defined in device tree. > - Cpufreq as cooling device registered in qoriq cpufreq

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-19 Thread Zhang Rui
On 二, 2016-07-19 at 10:01 +, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > rcar-thermal is supporting both thermal_zone_of_sensor_register() and > thermal_zone_device_register(). But thermal_zone_of_sensor_register() > doesn't enable hwmon as

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-19 Thread Zhang Rui
On 二, 2016-07-19 at 10:01 +, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > rcar-thermal is supporting both thermal_zone_of_sensor_register() and > thermal_zone_device_register(). But thermal_zone_of_sensor_register() > doesn't enable hwmon as default. > This patch enables it to keep

Re: [PATCH] thermal: hisilicon: Add dependency on the clock driver to allow frequency scaling

2016-08-19 Thread Zhang Rui
On 一, 2016-08-01 at 11:43 +0530, Amit Kucheria wrote: > On Mon, Jul 25, 2016 at 6:49 PM, Wei Xu wrote: > > > > > > > > On 25/07/2016 13:29, Amit Kucheria wrote: > > > > > > On Thu, Jul 7, 2016 at 12:13 PM, Amit Kucheria > > aro.org> wrote: > > > > >

Re: [PATCH] thermal: hisilicon: Add dependency on the clock driver to allow frequency scaling

2016-08-19 Thread Zhang Rui
On 一, 2016-08-01 at 11:43 +0530, Amit Kucheria wrote: > On Mon, Jul 25, 2016 at 6:49 PM, Wei Xu wrote: > > > > > > > > On 25/07/2016 13:29, Amit Kucheria wrote: > > > > > > On Thu, Jul 7, 2016 at 12:13 PM, Amit Kucheria > > aro.org> wrote: > > > > > > > > On Sun, Jun 26, 2016 at 10:02 PM,

Re: [PATCH V4 2/2] thermal: max77620: Add thermal driver for reporting junction temp

2016-08-19 Thread Zhang Rui
On 二, 2016-06-07 at 16:22 +0530, Laxman Dewangan wrote: > Maxim Semiconductor Max77620 supports alarm interrupts when > its die temperature crosses 120C and 140C. These threshold > temperatures are not configurable. > > Add thermal driver to register PMIC die temperature as thermal > zone sensor

<    1   2   3   4   5   6   7   8   9   10   >