[RFC PATCH 8/8] PNPACPI: create both PNP and Platform device nodes for PNP0C01/PNP0C02

2014-02-26 Thread Zhang Rui
to copy quirks.c and system.c logic into ACPI), which does not look good neither. Any comments will be appreciated. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/pnp/pnpacpi/core.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/pnp

[RFC PATCH 4/8] PNPACPI: remove unsupported serial PNP ids from PNPACPI id list

2014-02-26 Thread Zhang Rui
for ACPI enumerated PNPCXXX/PNPDXXX devices. So it is safe to remove those two ids from the PNPACPI id list. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/pnp/pnpacpi/core.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c

[RFC PATCH 6/8] ACPI: use platform bus as the default bus for _HID enumeration

2014-02-26 Thread Zhang Rui
Because of the growing demand for enumerating ACPI devices to platform bus, this patch changes the code to enumerate ACPI devices with _HID/_CID to platform bus by default, unless the device already has a scan handler attached. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/acpi

[RFC PATCH 3/8] PNPACPI: remove ids that does not comply with the ACPI PNP id rule

2014-02-26 Thread Zhang Rui
from the PNPACPI white list. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/pnp/pnpacpi/core.c |4 1 file changed, 4 deletions(-) diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index 76df7fc..d47fbdf 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers

[RFC PATCH 0/8] ACPI: change the way of enumerating PNPACPI/Platform devices

2014-02-26 Thread Zhang Rui
). But anyway, IMO, this specific problem does not mean the proposal of this patch is wrong, thus I send this patch out for early review to see if I'm in the right direction. Any comments are really welcome. thanks, rui Zhang Rui (8

[RFC PATCH 2/8] PNPACPI: use whilte list for pnpacpi device enumeration

2014-02-26 Thread Zhang Rui
for the devices that are not PNP devices in nature. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/acpi/scan.c|2 + drivers/pnp/pnpacpi/core.c | 395 include/linux/pnp.h|3 + 3 files changed, 366 insertions(+), 34

Re: [PATCH 1/1] thermal: fix default governor assignment

2014-02-26 Thread Zhang Rui
the default governor, whenever the zone has a governor set to NULL. please check if the patch at https://patchwork.kernel.org/patch/3730391/ fixes the same problem? thanks, rui Cc: Zhang Rui rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reported-by: Wei

Re: [PATCH] thermal: add generic IIO channel thermal sensor driver

2014-02-26 Thread Zhang Rui
On Wed, 2014-02-05 at 17:43 -0800, Courtney Cavin wrote: This driver is a generic method for using IIO ADC channels as thermal sensors. Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Eduardo, what do you think of this patch? thanks, rui ---

Re: [PATCH 2/2] thermal,rcar_thermal: Add dependency on HAS_IOMEM

2014-02-26 Thread Zhang Rui
On Sat, 2014-01-25 at 23:29 +0100, Richard Weinberger wrote: Commit beeb5a1e (thermal: rcar-thermal: Enable driver compilation with COMPILE_TEST) broke build on archs wihout io memory. On archs like S390 or um this driver cannot build nor work. Make it depend on HAS_IOMEM to bypass build

[GIT PULL] Thermal management updates for v3.14-rc1

2014-01-23 Thread Zhang Rui
): intel_powerclamp: Fix cstate counter detection. Zhang Rui (5): Merge branch 'next' of git://git.kernel.org/.../evalenti/linux-soc-thermal into soc-thermal Thermal cpu cooling: return error if no valid cpu frequency entry Merge branches 'misc', 'soc', 'soc-eduardo' and 'int3404

[GIT PULL] Thermal management updates for v3.14-rc1

2014-01-23 Thread Zhang Rui
): intel_powerclamp: Fix cstate counter detection. Zhang Rui (5): Merge branch 'next' of git://git.kernel.org/.../evalenti/linux-soc-thermal into soc-thermal Thermal cpu cooling: return error if no valid cpu frequency entry Merge branches 'misc', 'soc', 'soc-eduardo' and 'int3404

Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional

2014-01-22 Thread Zhang Rui
On Thu, 2014-01-23 at 02:11 -0500, Len Brown wrote: > From: Len Brown > > Linux suspend-to-RAM was unreliable when first developed, > and so sys_sync() was invoked inside the kernel at the > start of every suspend flow. > > Today, many devices are invoking suspend with > high reliability and

Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional

2014-01-22 Thread Zhang Rui
On Thu, 2014-01-23 at 02:11 -0500, Len Brown wrote: From: Len Brown len.br...@intel.com Linux suspend-to-RAM was unreliable when first developed, and so sys_sync() was invoked inside the kernel at the start of every suspend flow. Today, many devices are invoking suspend with high

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Fri, 2014-01-17 at 02:28 +0100, Rafael J. Wysocki wrote: > On Thursday, January 16, 2014 04:04:35 PM Zhang Rui wrote: > > On Wed, 2014-01-15 at 17:08 +0200, Mika Westerberg wrote: > > > On Tue, Jan 14, 2014 at 04:46:37PM +0800, Zhang Rui wrote: > > > > diff --g

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Thu, 2014-01-16 at 13:27 +0100, Wolfram Sang wrote: > > diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c > > index d74c0b3..c4c5588 100644 > > --- a/drivers/i2c/i2c-core.c > > +++ b/drivers/i2c/i2c-core.c > > @@ -104,6 +104,11 @@ static int i2c_device_match(struct device *dev,

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Thu, 2014-01-16 at 12:28 +, Mark Brown wrote: > On Tue, Jan 14, 2014 at 04:46:37PM +0800, Zhang Rui wrote: > > ACPI enumerated devices has ACPI style _HID and _CID strings, > > all of these strings can be used for both driver loading and matching. > > > >

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Wed, 2014-01-15 at 17:08 +0200, Mika Westerberg wrote: > On Tue, Jan 14, 2014 at 04:46:37PM +0800, Zhang Rui wrote: > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > > index 3a94b79..2f4aea2 100644 > > --- a/drivers/base/platform.c > > ++

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Wed, 2014-01-15 at 17:08 +0200, Mika Westerberg wrote: On Tue, Jan 14, 2014 at 04:46:37PM +0800, Zhang Rui wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 3a94b79..2f4aea2 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -677,7 +677,13

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Thu, 2014-01-16 at 12:28 +, Mark Brown wrote: On Tue, Jan 14, 2014 at 04:46:37PM +0800, Zhang Rui wrote: ACPI enumerated devices has ACPI style _HID and _CID strings, all of these strings can be used for both driver loading and matching. Currently, in Platform, I2C and SPI bus

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Thu, 2014-01-16 at 13:27 +0100, Wolfram Sang wrote: diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index d74c0b3..c4c5588 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -104,6 +104,11 @@ static int i2c_device_match(struct device *dev, struct

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-16 Thread Zhang Rui
On Fri, 2014-01-17 at 02:28 +0100, Rafael J. Wysocki wrote: On Thursday, January 16, 2014 04:04:35 PM Zhang Rui wrote: On Wed, 2014-01-15 at 17:08 +0200, Mika Westerberg wrote: On Tue, Jan 14, 2014 at 04:46:37PM +0800, Zhang Rui wrote: diff --git a/drivers/base/platform.c b/drivers/base

RE: [PATCH 4/4] OF: introduce OF style 'modalias' support for platform bus.

2014-01-15 Thread Zhang, Rui
> -Original Message- > From: Rob Herring [mailto:robherri...@gmail.com] > Sent: Wednesday, January 15, 2014 9:45 PM > To: Zhang, Rui > Cc: linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org; linux- > i...@vger.kernel.org; linux-...@vger.kernel.org; w...@the-dream

RE: [PATCH 4/4] OF: introduce OF style 'modalias' support for platform bus.

2014-01-15 Thread Zhang, Rui
-Original Message- From: Rob Herring [mailto:robherri...@gmail.com] Sent: Wednesday, January 15, 2014 9:45 PM To: Zhang, Rui Cc: linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org; linux- i...@vger.kernel.org; linux-...@vger.kernel.org; w...@the-dreams.de; Mark Brown; Greg

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
On Tue, 2014-01-14 at 14:41 +, Mark Brown wrote: > On Tue, Jan 14, 2014 at 04:00:17PM +0800, Zhang Rui wrote: > > On Mon, 2014-01-13 at 17:35 +, Mark Brown wrote: > > > On Mon, Jan 13, 2014 at 09:48:31PM +0800, Zhang Rui wrote: > > > > ACPI enumerated device

[PATCH 2/4] ACPI: add module autoloading support for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
n the ACPI bus is removed from device model. This patch introduces two new APIs, one for exporting ACPI ids in uevent MODALIAS field, and another for exporting ACPI ids in device' modalias sysfs attribute. For any bus that supports ACPI enumerated devices, it needs to invoke these two functions fo

[PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
ts in that the driver will not be loaded automatically when the device node is created, because their modalias do not match. This also applies to I2C and SPI bus. With this patch, the device' modalias will be shown as "acpi:INTABCD" as well. Signed-off-by: Zhang Rui --- drivers/base/plat

[PATCH 1/4] ACPI: fix create_modalias() return value handling

2014-01-14 Thread Zhang Rui
if there is an output error, return -ENOMEM if the output is truncated, and also fixes both acpi_device_uevent() and acpi_device_modalias_show() to do proper return value check. Signed-off-by: Zhang Rui --- drivers/acpi/scan.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

[PATCH 4/4] OF: introduce OF style 'modalias' support for platform bus.

2014-01-14 Thread Zhang Rui
Fix a problem that, the platform bus supports the OF style modalias in .uevent() call, but not in its device 'modalias' sysfs attribute. cc: devicet...@vger.kernel.org Signed-off-by: Zhang Rui --- drivers/base/platform.c |4 drivers/of/device.c |3 +++ include/linux

[PATCH 0/4] module autoloading fixes

2014-01-14 Thread Zhang Rui
their modalias as "acpi:PNP0C0B". thanks, rui -------- Zhang Rui (4): ACPI: fix create_modalias() return value handling ACPI: add module autoloading support for ACPI enumerated devices fix module autoloading for ACPI

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
On Mon, 2014-01-13 at 17:35 +, Mark Brown wrote: > On Mon, Jan 13, 2014 at 09:48:31PM +0800, Zhang Rui wrote: > > ACPI enumerated devices has ACPI style _HID and _CID strings, > > all of these strings can be used for both driver loading and matching. > > > But cur

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
On Mon, 2014-01-13 at 17:35 +, Mark Brown wrote: On Mon, Jan 13, 2014 at 09:48:31PM +0800, Zhang Rui wrote: ACPI enumerated devices has ACPI style _HID and _CID strings, all of these strings can be used for both driver loading and matching. But currently, in Platform, I2C and SPI bus

[PATCH 0/4] module autoloading fixes

2014-01-14 Thread Zhang Rui
their modalias as acpi:PNP0C0B. thanks, rui Zhang Rui (4): ACPI: fix create_modalias() return value handling ACPI: add module autoloading support for ACPI enumerated devices fix module autoloading for ACPI enumerated devices

[PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
when the device node is created, because their modalias do not match. This also applies to I2C and SPI bus. With this patch, the device' modalias will be shown as acpi:INTABCD as well. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/base/platform.c | 12 +++- drivers/i2c/i2c

[PATCH 1/4] ACPI: fix create_modalias() return value handling

2014-01-14 Thread Zhang Rui
if there is an output error, return -ENOMEM if the output is truncated, and also fixes both acpi_device_uevent() and acpi_device_modalias_show() to do proper return value check. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/acpi/scan.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions

[PATCH 4/4] OF: introduce OF style 'modalias' support for platform bus.

2014-01-14 Thread Zhang Rui
Fix a problem that, the platform bus supports the OF style modalias in .uevent() call, but not in its device 'modalias' sysfs attribute. cc: devicet...@vger.kernel.org Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/base/platform.c |4 drivers/of/device.c |3

[PATCH 2/4] ACPI: add module autoloading support for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
, and another for exporting ACPI ids in device' modalias sysfs attribute. For any bus that supports ACPI enumerated devices, it needs to invoke these two functions for their uevent and modalias attribute. Signed-off-by: Zhang Rui rui.zh...@intel.com Reviewed-by: Mika Westerberg mika.westerb

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
On Tue, 2014-01-14 at 14:41 +, Mark Brown wrote: On Tue, Jan 14, 2014 at 04:00:17PM +0800, Zhang Rui wrote: On Mon, 2014-01-13 at 17:35 +, Mark Brown wrote: On Mon, Jan 13, 2014 at 09:48:31PM +0800, Zhang Rui wrote: ACPI enumerated devices has ACPI style _HID and _CID strings

[PATCH 4/4] OF: introduce OF style 'modalias' support for platform bus.

2014-01-13 Thread Zhang Rui
Fix a problem that, the platform bus supports the OF style modalias in .uevent() call, but not in its device' "modalias" sysfs attribute. Signed-off-by: Zhang Rui --- drivers/base/platform.c |4 drivers/of/device.c |3 +++ include/linux/of_device.h |6 +

[PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-13 Thread Zhang Rui
. This patch fixes module autoloading on those buses for ACPI enumerated devices. Signed-off-by: Zhang Rui --- drivers/base/platform.c | 12 +++- drivers/i2c/i2c-core.c | 11 +++ drivers/spi/spi.c | 10 ++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git

[PATCH 2/4] ACPI: add module autoloading support for ACPI enumerated devices

2014-01-13 Thread Zhang Rui
n the ACPI bus is removed from device model. This patch introduces two new APIs, one for exporting ACPI ids in uevent MODALIAS field, and another for exporting ACPI ids in device' modalias sysfs attribute. For any bus that supports ACPI enumerated devices, it needs to invoke these two functions fo

[PATCH 1/4] ACPI: fix create_modalias() return value handling

2014-01-13 Thread Zhang Rui
if there is an output error, return -ENOMEM if the output is truncated, and also fixes both acpi_device_uevent() and acpi_device_modalias_show() to do proper return value check. Signed-off-by: Zhang Rui --- drivers/acpi/scan.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

[PATCH 0/4] module autoloading fixes

2014-01-13 Thread Zhang Rui
their modalias as "acpi:PNP0C0B". thanks, rui -------- Zhang Rui (4): ACPI: fix create_modalias() return value handling ACPI: add module autoloading support for ACPI enumerated devices fix module autoloading for ACPI

[PATCH 0/4] module autoloading fixes

2014-01-13 Thread Zhang Rui
their modalias as acpi:PNP0C0B. thanks, rui Zhang Rui (4): ACPI: fix create_modalias() return value handling ACPI: add module autoloading support for ACPI enumerated devices fix module autoloading for ACPI enumerated devices

[PATCH 1/4] ACPI: fix create_modalias() return value handling

2014-01-13 Thread Zhang Rui
if there is an output error, return -ENOMEM if the output is truncated, and also fixes both acpi_device_uevent() and acpi_device_modalias_show() to do proper return value check. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/acpi/scan.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions

[PATCH 2/4] ACPI: add module autoloading support for ACPI enumerated devices

2014-01-13 Thread Zhang Rui
, and another for exporting ACPI ids in device' modalias sysfs attribute. For any bus that supports ACPI enumerated devices, it needs to invoke these two functions for their uevent and modalias attribute. Signed-off-by: Zhang Rui rui.zh...@intel.com Reviewed-by: Mika Westerberg mika.westerb

[PATCH 4/4] OF: introduce OF style 'modalias' support for platform bus.

2014-01-13 Thread Zhang Rui
Fix a problem that, the platform bus supports the OF style modalias in .uevent() call, but not in its device' modalias sysfs attribute. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/base/platform.c |4 drivers/of/device.c |3 +++ include/linux/of_device.h |6

[PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-13 Thread Zhang Rui
. This patch fixes module autoloading on those buses for ACPI enumerated devices. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/base/platform.c | 12 +++- drivers/i2c/i2c-core.c | 11 +++ drivers/spi/spi.c | 10 ++ 3 files changed, 32 insertions(+), 1

RE: [PATCHv5 05/20] cpufreq: cpufreq-cpu0: add dt node parsing for cooling device properties

2014-01-12 Thread Zhang, Rui
> -Original Message- > From: Eduardo Valentin [mailto:eduardo.valen...@ti.com] > Sent: Wednesday, November 13, 2013 3:46 AM > To: swar...@wwwdotorg.org; pawel.m...@arm.com; mark.rutl...@arm.com; > ian.campb...@citrix.com; rob.herr...@calxeda.com; li...@roeck-us.net; >

RE: [PATCHv5 05/20] cpufreq: cpufreq-cpu0: add dt node parsing for cooling device properties

2014-01-12 Thread Zhang, Rui
-Original Message- From: Eduardo Valentin [mailto:eduardo.valen...@ti.com] Sent: Wednesday, November 13, 2013 3:46 AM To: swar...@wwwdotorg.org; pawel.m...@arm.com; mark.rutl...@arm.com; ian.campb...@citrix.com; rob.herr...@calxeda.com; li...@roeck-us.net; Zhang, Rui Cc: w

Re: [PATCH v12 7/7] thermal:exynos:boost: Automatic enable/disable of BOOST feature (at Exynos4412)

2014-01-09 Thread Zhang Rui
W managed shut down of the system. > If the last trip point is crossed, the PMU HW generates the power off > signal. > > Signed-off-by: Lukasz Majewski > Signed-off-by: Myungjoo Ham > Acked-by: Eduardo Valentin Reviewed-by: Zhang Rui thanks, rui > > --- >

Re: [PATCH v12 0/7] cpufreq:boost: CPU Boost mode support

2014-01-09 Thread Zhang Rui
On Wed, 2014-01-08 at 01:35 +0100, Rafael J. Wysocki wrote: > On Tuesday, January 07, 2014 07:58:24 AM Lukasz Majewski wrote: > > Hi Rafael, > > Hi, > > > > This patch series introduces support for CPU overclocking technique > > > called Boost. > > > > > > It is a follow up of a LAB governor

Re: [PATCH v12 0/7] cpufreq:boost: CPU Boost mode support

2014-01-09 Thread Zhang Rui
On Wed, 2014-01-08 at 01:35 +0100, Rafael J. Wysocki wrote: On Tuesday, January 07, 2014 07:58:24 AM Lukasz Majewski wrote: Hi Rafael, Hi, This patch series introduces support for CPU overclocking technique called Boost. It is a follow up of a LAB governor proposal. Boost is a

Re: [PATCH v12 7/7] thermal:exynos:boost: Automatic enable/disable of BOOST feature (at Exynos4412)

2014-01-09 Thread Zhang Rui
the power off signal. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Signed-off-by: Myungjoo Ham myungjoo@samsung.com Acked-by: Eduardo Valentin eduardo.valen...@ti.com Reviewed-by: Zhang Rui rui.zh...@intel.com thanks, rui --- Changes for v12: - More verbose patch

Re: [PATCH] hwmon/sensors: fix SENSORS_LM75 dependencies

2014-01-07 Thread Zhang Rui
`thermal_zone_of_sensor_unregister' > > drivers/built-in.o: In function `lm75_probe': > > lm75.c:(.text+0x12c123): undefined reference to > > `thermal_zone_of_sensor_register' > > > > Therefore, this patch limits the compilation build to always > > have THERMAL=y,

RE: [PATCH] hwmon/sensors: fix SENSORS_LM75 dependencies

2014-01-07 Thread Zhang, Rui
d; > lm-sens...@lm-sensors.org; Zhang, Rui; Eduardo Valentin; linux- > p...@vger.kernel.org > Subject: Re: [PATCH] hwmon/sensors: fix SENSORS_LM75 dependencies > Importance: High > > On 07-01-2014 08:04, Jean Delvare wrote: > > Hi Guenter, Randy, > > > > O

RE: [PATCH] hwmon/sensors: fix SENSORS_LM75 dependencies

2014-01-07 Thread Zhang, Rui
-sensors.org; Zhang, Rui; Eduardo Valentin; linux- p...@vger.kernel.org Subject: Re: [PATCH] hwmon/sensors: fix SENSORS_LM75 dependencies Importance: High On 07-01-2014 08:04, Jean Delvare wrote: Hi Guenter, Randy, On Mon, 06 Jan 2014 18:26:34 -0800, Guenter Roeck wrote: On 01/06/2014 05:09 PM

Re: [PATCH] hwmon/sensors: fix SENSORS_LM75 dependencies

2014-01-07 Thread Zhang Rui
will provide stubs. Cc: Zhang Rui rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/thermal/Kconfig | 29 - 1 file changed, 16 insertions(+), 13 deletions

Re: [PATCHv2 0/7] DRA7: DT thermal support

2014-01-06 Thread Zhang Rui
On Mon, 2014-01-06 at 08:36 -0400, Eduardo Valentin wrote: > Hello all, > > Now that the basic thermal DT support is merged into Rui's tree, > I am resending this series, which introduces the DT node entries > for DRA7 thermal limits representation. > > The series adds two thermal zones, to

Re: [PATCH 1/1] thermal: remove const flag from .ops of imx thermal

2014-01-06 Thread Zhang Rui
On Mon, 2014-01-06 at 08:54 -0400, Eduardo Valentin wrote: > As per previous changes on thermal framework API, > registering a new thermal zone does not require > a const thermal zone ops. > > Thus, this patch removes the flag from imx thermal zone ops. > > Cc: Zhang Ru

Re: [PATCH 1/1] thermal: remove const flag from .ops of imx thermal

2014-01-06 Thread Zhang Rui
On Mon, 2014-01-06 at 08:54 -0400, Eduardo Valentin wrote: As per previous changes on thermal framework API, registering a new thermal zone does not require a const thermal zone ops. Thus, this patch removes the flag from imx thermal zone ops. Cc: Zhang Rui rui.zh...@intel.com Cc: Grant

Re: [PATCHv2 0/7] DRA7: DT thermal support

2014-01-06 Thread Zhang Rui
On Mon, 2014-01-06 at 08:36 -0400, Eduardo Valentin wrote: Hello all, Now that the basic thermal DT support is merged into Rui's tree, I am resending this series, which introduces the DT node entries for DRA7 thermal limits representation. The series adds two thermal zones, to represent

Re: [PATCH] thermal: exynos: handle gate clock for misplaced TRIMINFO register

2014-01-01 Thread Zhang Rui
On Thu, 2013-11-07 at 18:12 +0530, Naveen Krishna Chatradhi wrote: > On Exynos5420 the TMU(4) for GPU has a seperate clock enable bit from > the other TMU channels(0 ~ 3). Hence, accessing TRIMINFO for base_second > should be acompanied by enabling the respective clock. > > This patch which allow

Re: [PATCH 1/1] thermal: fix cpu_cooling max_level behavior

2014-01-01 Thread Zhang Rui
ency; > > max_level++; > > } > > + /* max_level is an index, not a counter */ > > + max_level--; > > I think we should check the max_level first, like the patch I attached below. thanks, rui >From a116776f7b6052599df0c67db29c30ea9d69d7ee Mon Sep

Re: [PATCH] thermal: ti-soc-thermal: clk_round_rate() can return a zero upon error

2014-01-01 Thread Zhang Rui
erve > the correct behavior in the meantime. > > This patch also gets rid of a comparison between unsigned and signed > values; a side-benefit. > > Signed-off-by: Paul Walmsley > Cc: Eduardo Valentin > Cc: Zhang Rui Eduardo, will you take this patch? thanks, rui > --- &g

Re: [PATCH] drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c

2014-01-01 Thread Zhang Rui
On Wed, 2013-12-18 at 10:40 -0800, j...@joshtriplett.org wrote: > On Wed, Dec 18, 2013 at 11:16:02PM +0530, Rashika Kheria wrote: > > Mark function sys_set_trip_temp() as static in x86_pkg_temp_thermal.c > > because it is not used outside this file. > > > > This eliminates the following warning

Re: [PATCH v12 1/4] thermal: samsung: replace inten_ bit fields with intclr_

2014-01-01 Thread Zhang Rui
On Thu, 2013-12-19 at 11:35 +0530, Naveen Krishna Chatradhi wrote: > This patch replaces the inten_rise_shift/mask and inten_fall_shift/mask > with intclr_rise_shift/mask and intclr_fall_shift/mask respectively. > Currently, inten_rise_shift/mask and inten_fall_shift/mask bits are only used > to

Re: [PATCH] thermal:samsung: fix compilation warning

2014-01-01 Thread Zhang Rui
On Fri, 2013-12-20 at 17:42 +0530, Naveen Krishna Chatradhi wrote: > This patch fixes a compilation warning. > > warning: passing argument 5 of 'thermal_zone_device_register' discards 'const' > qualifier from pointer target type [enabled by default] > include/linux/thermal.h:270:29: note:

Re: [PATCH V2] thermal: imx: correct suspend/resume flow

2014-01-01 Thread Zhang Rui
On Tue, 2013-12-24 at 09:43 -0500, Anson Huang wrote: > Fixes regression introduced by: > > commit 37713a1e8e4c1a1067ad4c99296f78d3c82ed9c4 > Author: Philipp Zabel > Date: Thu Aug 1 18:33:12 2013 +0200 > > thermal: imx: implement thermal alarm interrupt handling > > The commit

Re: [PATCH 23/25] thermal: exynos: fix error return code

2014-01-01 Thread Zhang Rui
On Sun, 2013-12-29 at 23:47 +0100, Julia Lawall wrote: > From: Julia Lawall > > Set the return variable to an error code as done elsewhere in the function. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // > ( > if@p1

Re: [PATCH 23/25] thermal: exynos: fix error return code

2014-01-01 Thread Zhang Rui
On Sun, 2013-12-29 at 23:47 +0100, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Set the return variable to an error code as done elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) //

Re: [PATCH V2] thermal: imx: correct suspend/resume flow

2014-01-01 Thread Zhang Rui
On Tue, 2013-12-24 at 09:43 -0500, Anson Huang wrote: Fixes regression introduced by: commit 37713a1e8e4c1a1067ad4c99296f78d3c82ed9c4 Author: Philipp Zabel p.za...@pengutronix.de Date: Thu Aug 1 18:33:12 2013 +0200 thermal: imx: implement thermal alarm interrupt handling The

Re: [PATCH] thermal:samsung: fix compilation warning

2014-01-01 Thread Zhang Rui
On Fri, 2013-12-20 at 17:42 +0530, Naveen Krishna Chatradhi wrote: This patch fixes a compilation warning. warning: passing argument 5 of 'thermal_zone_device_register' discards 'const' qualifier from pointer target type [enabled by default] include/linux/thermal.h:270:29: note: expected

Re: [PATCH v12 1/4] thermal: samsung: replace inten_ bit fields with intclr_

2014-01-01 Thread Zhang Rui
On Thu, 2013-12-19 at 11:35 +0530, Naveen Krishna Chatradhi wrote: This patch replaces the inten_rise_shift/mask and inten_fall_shift/mask with intclr_rise_shift/mask and intclr_fall_shift/mask respectively. Currently, inten_rise_shift/mask and inten_fall_shift/mask bits are only used to

Re: [PATCH] drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c

2014-01-01 Thread Zhang Rui
On Wed, 2013-12-18 at 10:40 -0800, j...@joshtriplett.org wrote: On Wed, Dec 18, 2013 at 11:16:02PM +0530, Rashika Kheria wrote: Mark function sys_set_trip_temp() as static in x86_pkg_temp_thermal.c because it is not used outside this file. This eliminates the following warning in

Re: [PATCH] thermal: ti-soc-thermal: clk_round_rate() can return a zero upon error

2014-01-01 Thread Zhang Rui
. This patch also gets rid of a comparison between unsigned and signed values; a side-benefit. Signed-off-by: Paul Walmsley pwalms...@nvidia.com Cc: Eduardo Valentin eduardo.valen...@ti.com Cc: Zhang Rui rui.zh...@intel.com Eduardo, will you take this patch? thanks, rui --- Applies

Re: [PATCH 1/1] thermal: fix cpu_cooling max_level behavior

2014-01-01 Thread Zhang Rui
the patch I attached below. thanks, rui From a116776f7b6052599df0c67db29c30ea9d69d7ee Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Thu, 2 Jan 2014 11:57:48 +0800 Subject: [PATCH] Thermal cpu cooling: return error if no valid cpu frequency entry Signed-off-by: Zhang Rui

Re: [PATCH] thermal: exynos: handle gate clock for misplaced TRIMINFO register

2014-01-01 Thread Zhang Rui
On Thu, 2013-11-07 at 18:12 +0530, Naveen Krishna Chatradhi wrote: On Exynos5420 the TMU(4) for GPU has a seperate clock enable bit from the other TMU channels(0 ~ 3). Hence, accessing TRIMINFO for base_second should be acompanied by enabling the respective clock. This patch which allow for

RE: [PATCH 0/4] Convert ACPI fan driver to platform driver

2013-12-05 Thread Zhang, Rui
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Thursday, December 05, 2013 7:10 AM > To: Lu, Aaron > Cc: Zhang, Rui; linux-a...@vger.kernel.org; linux- > ker...@vger.kernel.org; Lan, Tianyu; Brown, Len; Matthew Garrett > Su

RE: [PATCH 0/4] Convert ACPI fan driver to platform driver

2013-12-05 Thread Zhang, Rui
-Original Message- From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] Sent: Thursday, December 05, 2013 7:10 AM To: Lu, Aaron Cc: Zhang, Rui; linux-a...@vger.kernel.org; linux- ker...@vger.kernel.org; Lan, Tianyu; Brown, Len; Matthew Garrett Subject: Re: [PATCH 0/4] Convert ACPI

Re: [PATCH] sysfs, acpi, tables: Set file size for each ACPI table

2013-11-20 Thread Zhang Rui
00 00 ...@ > 00A0: 00 00 00 00 00 00 00 00 > > Signed-off-by: HATAYAMA Daisuke Nice catch! Acked-by: Zhang Rui thanks, rui > --- > drivers/acpi/sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [PATCH] sysfs, acpi, tables: Set file size for each ACPI table

2013-11-20 Thread Zhang Rui
: 01 28 00 00 00 00 00 00 00 00 00 00 01 00 00 00 .(.. 0090: 00 00 00 40 00 00 00 00 00 00 00 00 01 00 00 00 ...@ 00A0: 00 00 00 00 00 00 00 00 Signed-off-by: HATAYAMA Daisuke d.hatay...@jp.fujitsu.com Nice catch! Acked-by: Zhang

Re: [lm-sensors] [PATCHv9 02/20] thermal: introduce device tree parser

2013-11-17 Thread Zhang Rui
ion on the DT thermal zone, > > it was required to allow changing the thermal zone > > .get_temp callback. For this reason, this patch > > also removes the 'const' modifier from the .ops > > field of thermal zone devices. > > > > Cc: Zhang Rui > > Cc: linux..

Re: [lm-sensors] [PATCHv9 02/20] thermal: introduce device tree parser

2013-11-17 Thread Zhang Rui
the 'const' modifier from the .ops field of thermal zone devices. Cc: Zhang Rui rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Mark Rutland mark.rutl...@arm.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- (...) +static int

[GIT PULL] thermal management updates for v3.13-rc1

2013-11-12 Thread Zhang Rui
: cpu_cooling: fix return value check in cpufreq_cooling_register() Zhang Rui (1): Merge branches 'intel_powerclamp', 'tmon' and 'misc' of .git into next durgados...@intel.com (2): Thermal: Tidy up error handling in powerclamp_init Thermal: Check for validity before doing kfree

[GIT PULL] thermal management updates for v3.13-rc1

2013-11-12 Thread Zhang Rui
: cpu_cooling: fix return value check in cpufreq_cooling_register() Zhang Rui (1): Merge branches 'intel_powerclamp', 'tmon' and 'misc' of .git into next durgados...@intel.com (2): Thermal: Tidy up error handling in powerclamp_init Thermal: Check for validity before doing kfree

Re: [PATCH] thermal: Fix binding problem when there is thermal zone params

2013-11-05 Thread Zhang Rui
On Fri, 2013-10-18 at 18:03 +0800, Wei Ni wrote: > The thermal zone params can be used to set governor > to specific thermal governor for thermal zone device. > But if the thermal zone params has only governor name > without thermal bind params, then the thermal zone device > will not be binding

Re: [PATCH] thermal: Fix binding problem when there is thermal zone params

2013-11-05 Thread Zhang Rui
On Fri, 2013-10-18 at 18:03 +0800, Wei Ni wrote: The thermal zone params can be used to set governor to specific thermal governor for thermal zone device. But if the thermal zone params has only governor name without thermal bind params, then the thermal zone device will not be binding to

RE: [PATCH v9 3/7] thermal:boost: Automatic enable/disable of BOOST feature

2013-10-17 Thread Zhang, Rui
> -Original Message- > From: Lukasz Majewski [mailto:l.majew...@samsung.com] > Sent: Tuesday, October 15, 2013 11:43 PM > To: Zhang, Rui > Cc: Viresh Kumar; Rafael J. Wysocki; Eduardo Valentin; > cpuf...@vger.kernel.org; Linux PM list; Jonghwa Lee; Lukasz Majews

RE: [PATCH v9 3/7] thermal:boost: Automatic enable/disable of BOOST feature

2013-10-17 Thread Zhang, Rui
-Original Message- From: Lukasz Majewski [mailto:l.majew...@samsung.com] Sent: Tuesday, October 15, 2013 11:43 PM To: Zhang, Rui Cc: Viresh Kumar; Rafael J. Wysocki; Eduardo Valentin; cpuf...@vger.kernel.org; Linux PM list; Jonghwa Lee; Lukasz Majewski; linux-kernel; Bartlomiej

Re: [GIT PULL] thermal-soc: urgent fixes for 3.12

2013-10-15 Thread Zhang Rui
Hi, Eduardo, On Mon, 2013-10-14 at 18:00 -0400, Eduardo Valentin wrote: > Hello Rui, > > Please pull the following changes. It contains fixes for 3.12 on Exynos > thermal driver, which is currently broken, Exynos4412 is the main affected. > Thanks Lukasz for his persistence on getting this done

Re: [PATCHv4 0/9] Thermal Framework Enhancements

2013-10-15 Thread Zhang Rui
Hi, Durga, On Wed, 2013-10-02 at 00:07 +0530, Durgadoss R wrote: > This patch set is a v4 of the previous versions submitted here: > [v3]: https://lkml.org/lkml/2013/2/5/228 > [v2]: http://lwn.net/Articles/531720/ > [v1]: https://lkml.org/lkml/2012/12/18/108 >

Re: [PATCHv4 5/9] Thermal: Add trip point sysfs nodes for sensor

2013-10-15 Thread Zhang Rui
On Wed, 2013-10-02 at 00:08 +0530, Durgadoss R wrote: > This patch adds a trip point related sysfs nodes > for each sensor under a zone in /sys/class/thermal/zoneX/. > The nodes will be named, sensorX_trip_activeY, > sensorX_trip_passiveY, sensorX_trip_hot, sensorX_trip_critical > for active,

Re: [PATCHv4 4/9] Thermal: Add APIs to bind cdev to new zone structure

2013-10-15 Thread Zhang Rui
On Wed, 2013-10-02 at 00:08 +0530, Durgadoss R wrote: > This patch creates new APIs to add/remove a > cdev to/from a zone. This patch does not change > the old cooling device implementation. > > Signed-off-by: Durgadoss R I'm okay with this patch except the API naming. thanks, rui > --- >

Re: [PATCHv4 3/9] Thermal: Create zone level APIs

2013-10-15 Thread Zhang Rui
On Wed, 2013-10-02 at 00:08 +0530, Durgadoss R wrote: > This patch adds a new thermal_zone structure to > thermal.h. Also, adds zone level APIs to the thermal > framework. > > A thermal zone is a hot spot on the platform, which > can have one or more sensors and cooling devices attached > to it.

RE: [PATCHv4 2/9] Thermal: Create sensor level APIs

2013-10-15 Thread Zhang Rui
On Mon, 2013-10-14 at 10:21 -0600, R, Durgadoss wrote: > Hi Rui, > > > -Original Message- > > From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- > > ow...@vger.kernel.org] On Behalf Of Zhang Rui > > Sent: Monday, October 14, 2013 2:56 PM > > To

Re: [PATCH v9 3/7] thermal:boost: Automatic enable/disable of BOOST feature

2013-10-15 Thread Zhang Rui
Hi, Lukasz, thanks for the patch, sorry that I didn't look into this one earlier. On Mon, 2013-10-14 at 14:17 +0200, Lukasz Majewski wrote: > This patch provides auto disable/enable operation for boost. When any > defined trip point is passed, the boost is disabled. Do you mean boost is

Re: [PATCH v9 3/7] thermal:boost: Automatic enable/disable of BOOST feature

2013-10-15 Thread Zhang Rui
Hi, Lukasz, thanks for the patch, sorry that I didn't look into this one earlier. On Mon, 2013-10-14 at 14:17 +0200, Lukasz Majewski wrote: This patch provides auto disable/enable operation for boost. When any defined trip point is passed, the boost is disabled. Do you mean boost is disabled

RE: [PATCHv4 2/9] Thermal: Create sensor level APIs

2013-10-15 Thread Zhang Rui
On Mon, 2013-10-14 at 10:21 -0600, R, Durgadoss wrote: Hi Rui, -Original Message- From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- ow...@vger.kernel.org] On Behalf Of Zhang Rui Sent: Monday, October 14, 2013 2:56 PM To: R, Durgadoss Cc: eduardo.valen...@ti.com; linux

Re: [PATCHv4 3/9] Thermal: Create zone level APIs

2013-10-15 Thread Zhang Rui
On Wed, 2013-10-02 at 00:08 +0530, Durgadoss R wrote: This patch adds a new thermal_zone structure to thermal.h. Also, adds zone level APIs to the thermal framework. A thermal zone is a hot spot on the platform, which can have one or more sensors and cooling devices attached to it. These

Re: [PATCHv4 4/9] Thermal: Add APIs to bind cdev to new zone structure

2013-10-15 Thread Zhang Rui
On Wed, 2013-10-02 at 00:08 +0530, Durgadoss R wrote: This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com I'm okay with this patch except the API naming. thanks,

<    6   7   8   9   10   11   12   13   14   15   >