groups.
As the removal of all attributes are handled by device core, the device
remove calls are not needed anymore.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.
Similarly to passive_store, policy_store now is split
between thermal core data structure handling and sysfs handling.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
dri
.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b/dri
Code reorganization to keep all the sysfs I/F of a thermal zone in the
same section.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_
Simply reorganize code to keep only functions of sysfs interface
of thermal zone device together. Therefore, move the power actor code
out of the sysfs I/F section.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Va
Align to parentheses, removing checkpatch warning.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 2 +-
1 file changed, 1 insertion(+)
Similarly to passive_store, policy_store now is split
between thermal core data structure handling and sysfs handling.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 37
...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index f5b519a..e2c4fc4 100644
Code reorganization to keep all the sysfs I/F of a thermal zone in the
same section.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 216 -
1 file changed
Simply reorganize code to keep only functions of sysfs interface
of thermal zone device together. Therefore, move the power actor code
out of the sysfs I/F section.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal
Align to parentheses, removing checkpatch warning.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/thermal_core.c b
rom Keerthy, a DRA7 device. The testing was done to check if the sysfs
nodes were still working. On top of that I have also boot tested
different devices using kernel CI infrastructure and the 0-day testing.
BR,
Eduardo Valentin (49):
thermal: core: prevent zones with no types to be registered
ther
Simple code reorganization to group files that are always created
when registering a thermal zone.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal
rom Keerthy, a DRA7 device. The testing was done to check if the sysfs
nodes were still working. On top of that I have also boot tested
different devices using kernel CI infrastructure and the 0-day testing.
BR,
Eduardo Valentin (49):
thermal: core: prevent zones with no types to be registered
ther
Simple code reorganization to group files that are always created
when registering a thermal zone.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 24
1 file changed, 12
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:
> >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
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:
> >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
Hello Rui,
On Sun, Aug 21, 2016 at 10:09:00PM +0800, Zhang Rui wrote:
> Hi,
>
> As Eduardo is quite busy recently, I will take all the thermal soc
> driver changes this time.
Thanks for helping me out. I am slowing coming back to upstream
activities. I have refreshed my branches, removing the
Hello Rui,
On Sun, Aug 21, 2016 at 10:09:00PM +0800, Zhang Rui wrote:
> Hi,
>
> As Eduardo is quite busy recently, I will take all the thermal soc
> driver changes this time.
Thanks for helping me out. I am slowing coming back to upstream
activities. I have refreshed my branches, removing the
r several weeks and my tree was broken during this
time causing the above problem. Sorry for this.
I have removed the problematic patches out of linux-next way.
Let me know if you still have troubles.
BR,
Eduardo Valentin
>
> --
> Cheers,
> Stephen Rothwell
r several weeks and my tree was broken during this
time causing the above problem. Sorry for this.
I have removed the problematic patches out of linux-next way.
Let me know if you still have troubles.
BR,
Eduardo Valentin
>
> --
> Cheers,
> Stephen Rothwell
On Wed, Aug 03, 2016 at 03:58:47PM -0700, Eduardo Valentin wrote:
> Hello Rui,
>
> Please pull from
So, forgot to mention that I have been away from upstream work for some
time now, and I am still catching up on my emails.
I've just realized that this may be a bit too late for the pu
On Wed, Aug 03, 2016 at 03:58:47PM -0700, Eduardo Valentin wrote:
> Hello Rui,
>
> Please pull from
So, forgot to mention that I have been away from upstream work for some
time now, and I am still catching up on my emails.
I've just realized that this may be a bit too late for the pu
thermal: rockchip: fixes the period time for tsadc
thermal: rockchip: fixes the exception interrupts
thermal: trivial: fix the typo
Eduardo Valentin (65):
thermal: core: prevent zones with no types to be registered
thermal: core: group thermal_zone DEVICE_ATTR's
thermal: rockchip: fixes the period time for tsadc
thermal: rockchip: fixes the exception interrupts
thermal: trivial: fix the typo
Eduardo Valentin (65):
thermal: core: prevent zones with no types to be registered
thermal: core: group thermal_zone DEVICE_ATTR's
<dvh...@infradead.org>
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: Keerthy <j-keer...@ti.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
ux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/acpi/thermal.c | 1 -
drivers/platform/x86/acerhdf.c | 1 -
drivers/thermal/imx_thermal.c
instead of an integer pointer.
>
> While the OF prototype may be the better one, this should be decided at
> framework level and not on OF level.
>
> Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
> Signed-off-by: Caesar Wang <w...@rock-chips.com>
> Cc: Zhang Rui <
ile the OF prototype may be the better one, this should be decided at
> framework level and not on OF level.
>
> Signed-off-by: Sascha Hauer
> Signed-off-by: Caesar Wang
> Cc: Zhang Rui
> Cc: Eduardo Valentin
> Cc: linux...@vger.kernel.org
> Reviewed-by: Keerthy
I had
Reorganize code to reflect better placement.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c| 30 --
dri
Reorganize code to reflect better placement.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c| 30 --
drivers/thermal/thermal_helpers.c | 30
ore.
> >
> > This patch is based on an earlier version from Mikko Perttunen
> > <mikko.perttu...@kapsi.fi>
> >
> > Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
> > Signed-off-by: Caesar Wang <w...@rock-chips.com>
> > Cc: Zhang Rui &
is patch is based on an earlier version from Mikko Perttunen
> >
> >
> > Signed-off-by: Sascha Hauer
> > Signed-off-by: Caesar Wang
> > Cc: Zhang Rui
> > Cc: Eduardo Valentin
> > Cc: linux...@vger.kernel.org
> >
> > ---
> >
>
linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/qcom/tsens-8916.c | 2 +-
drivers/thermal/qcom/tsens-8960.c | 2 +-
drivers/thermal/qcom/tsens-8974.c | 2 +-
drivers/thermal/qcom/tsens-8996.c | 2 +-
4 files changed, 4 insertions(+), 4 deleti
: symbol 'ops_8974' was not
declared. Should it be static?
drivers/thermal/qcom/tsens-8960.c:279:24: warning: symbol 'ops_8960' was not
declared. Should it be static?
Cc: Zhang Rui
Cc: Rajendra Nayak
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
ng only the new version of that
patch. Are you OK to pick it up like that?
>
> thanks,
> rui
>
> On 三, 2016-06-22 at 08:03 -0700, Eduardo Valentin wrote:
> > Because several drivers do the following pattern:
> > .set_mode()
> > ...
> > local_data-
ng only the new version of that
patch. Are you OK to pick it up like that?
>
> thanks,
> rui
>
> On 三, 2016-06-22 at 08:03 -0700, Eduardo Valentin wrote:
> > Because several drivers do the following pattern:
> > .set_mode()
> > ...
> > local_data-
On Thu, Jun 23, 2016 at 02:27:12PM +0200, Rafael J. Wysocki wrote:
> On Wed, Jun 22, 2016 at 7:06 AM, Eduardo Valentin <edubez...@gmail.com> wrote:
> > Because several drivers do the following pattern:
> > .set_mode()
> >...
> >local_data->mode = new_mod
On Thu, Jun 23, 2016 at 02:27:12PM +0200, Rafael J. Wysocki wrote:
> On Wed, Jun 22, 2016 at 7:06 AM, Eduardo Valentin wrote:
> > Because several drivers do the following pattern:
> > .set_mode()
> >...
> >local_data->mode = new_mode;
> >thermal_z
On Wed, Jun 22, 2016 at 07:36:11AM -0700, Eduardo Valentin wrote:
> On Wed, Jun 22, 2016 at 03:03:45PM +0530, Keerthy wrote:
> >
> >
> > On Wednesday 22 June 2016 10:45 AM, Eduardo Valentin wrote:
> > >Because several drivers do the fol
On Wed, Jun 22, 2016 at 07:36:11AM -0700, Eduardo Valentin wrote:
> On Wed, Jun 22, 2016 at 03:03:45PM +0530, Keerthy wrote:
> >
> >
> > On Wednesday 22 June 2016 10:45 AM, Eduardo Valentin wrote:
> > >Because several drivers do the fol
Darren Hart <dvh...@infradead.org>
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: Keerthy <j-keer...@ti.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gm
ger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
Hello,
V3->V4:
- ti-soc: Removed extra locking from TI SoC in set_mode
- ACPI: Kept the update on check as it is called on other places
BR,
Edu
On Wed, Jun 22, 2016 at 03:03:45PM +0530, Keerthy wrote:
>
>
> On Wednesday 22 June 2016 10:45 AM, Eduardo Valentin wrote:
> >Because several drivers do the following pattern:
> >.set_mode()
> >...
> >local_data->mode = new_mode;
> >thermal_
On Wed, Jun 22, 2016 at 03:03:45PM +0530, Keerthy wrote:
>
>
> On Wednesday 22 June 2016 10:45 AM, Eduardo Valentin wrote:
> >Because several drivers do the following pattern:
> >.set_mode()
> >...
> >local_data->mode = new_mode;
> >thermal_
Darren Hart <dvh...@infradead.org>
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: Keerthy <j-keer...@ti.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gm
ger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
Hey,
V2--> V3: Remove locking from OF thermal set mode.
The locking is done from thermal core already.
BR,
Eduardo
drivers/acpi/thermal.c
Darren Hart <dvh...@infradead.org>
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: Keerthy <j-keer...@ti.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin <edube
ger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
Please ignore last version.
V1-> V2:
Cleaned the patch and remove unrelated changes.
---
drivers/acpi/thermal.c | 2 --
d
Darren Hart <dvh...@infradead.org>
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: Keerthy <j-keer...@ti.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@
ger.kernel.org
Cc: linux-o...@vger.kernel.org
Cc: platform-driver-...@vger.kernel.org
Cc: linux...@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
Rui, Keerthy,
I think this patch should take care of the introduced deadlock.
Let me know if solves on your end.
BR,
Eduardo
--
Simply reorganize the code to have all DEVICE_ATTR's
in one point in the file.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 20 ++-
Simply reorganize the code to have all DEVICE_ATTR's
in one point in the file.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 20 ++--
1 file changed, 10 insertions(+), 10
Simple code reorganization to group files that are always created
when registering a thermal zone.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal
ch issues in the existing code that was
moved/changed.
Rui, it would be great if you could review these earlier. I will be
sending two extra patch series on top of this one.
Eduardo Valentin (48):
thermal: core: prevent zones with no types to be registered
thermal: core: group thermal_zone DEVI
Simple code reorganization to group files that are always created
when registering a thermal zone.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 24
1 file changed, 12
ch issues in the existing code that was
moved/changed.
Rui, it would be great if you could review these earlier. I will be
sending two extra patch series on top of this one.
Eduardo Valentin (48):
thermal: core: prevent zones with no types to be registered
thermal: core: group thermal_zone DEVI
ng Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 36
1 file changed, 28 insertions(+), 8 deletions(-)
diff --git
mal driver has exposed
at least one passive trip point.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 42 +-
ui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 36
1 file changed, 28 insertions(+), 8 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_
mal driver has exposed
at least one passive trip point.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 42 +-
1 file changed, 33 insertions(+), 9 deletions(-)
d
Simply reorganize code to keep only functions of sysfs interface
of thermal zone device together. Therefore, move the power actor code
out of the sysfs I/F section.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Va
Simply reorganize code to keep only functions of sysfs interface
of thermal zone device together. Therefore, move the power actor code
out of the sysfs I/F section.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal
emul_temp creation is dependent on a compile time
condition. Moving to tz->device.groups.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 11
emul_temp creation is dependent on a compile time
condition. Moving to tz->device.groups.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 11 ---
1 file changed, 4 insertions(+)
Align to parentheses, removing checkpatch warning.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 2 +-
1 file changed, 1 insertion(+)
Align to parentheses, removing checkpatch warning.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/thermal_core.c b
linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_core.c | 87 +-
1 file changed, 34 insertions(+), 53 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b/dri
: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_core.c | 87 +-
1 file changed, 34 insertions(+), 53 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 3ce7882..657cc2a
serialization to data will be done.
For your consideration, I am also adding this to this branch:
git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
sysfs_locking
Comments are welcome.
BR,
Eduardo Valentin (15):
thermal: sysfs: lock tz in type_show
thermal: sysfs: lock tz
serialization to data will be done.
For your consideration, I am also adding this to this branch:
git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
sysfs_locking
Comments are welcome.
BR,
Eduardo Valentin (15):
thermal: sysfs: lock tz in type_show
thermal: sysfs: lock tz
Avoid race while accessing tz->type.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_sysfs.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion
Serialized calls to tz.ops in user facing
sysfs handler trip_point_type_show() and trip_point_temp_store().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/the
Avoid race while accessing tz->type.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal/thermal_sysfs.
Serialized calls to tz.ops in user facing
sysfs handler trip_point_type_show() and trip_point_temp_store().
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 2 ++
1 file changed, 2 insertions
Serialized calls to tz.ops in user facing
sysfs handler passive_store() and
passive_show().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_
Serialized calls to tz.ops in user facing
sysfs handler passive_store() and
passive_show().
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 15 ++-
1 file changed, 14 insertions(+), 1
Serialized calls to cdev->ops in user facing
sysfs handler thermal_cooling_device_max_state_show().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/ther
emul_temp_store locks only for setting temperature,
but it must lock also for calls to tz.ops.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal
Serialized calls to cdev->ops in user facing
sysfs handler thermal_cooling_device_max_state_show().
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 2 ++
1 file changed, 2 insertions(+)
d
emul_temp_store locks only for setting temperature,
but it must lock also for calls to tz.ops.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 9 -
1 file changed, 4 insertions(+), 5
Lock tz when in user facing sysfs handlers to expose
sustainable power properties. This includes:
sustainable_power_show()
sustainable_power_store()
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin &
Lock tz when in user facing sysfs handlers to expose
sustainable power properties. This includes:
sustainable_power_show()
sustainable_power_store()
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c
Serialized calls to cdev->ops in user facing
sysfs handlers thermal_cooling_device_cur_state_show()
and thermal_cooling_device_cur_state_store().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez.
Serialized calls to cdev->ops in user facing
sysfs handlers thermal_cooling_device_cur_state_show()
and thermal_cooling_device_cur_state_store().
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c
linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_sysfs.c | 20 ++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
i
Serialized data access to cdev->type in user facing
sysfs handler thermal_cooling_device_type_show().
The existing cdev lock is used. Updating comment
on the lock definition.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by
@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 20 ++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index ab78e08..31314be 100644
--- a/drivers/thermal
Serialized data access to cdev->type in user facing
sysfs handler thermal_cooling_device_type_show().
The existing cdev lock is used. Updating comment
on the lock definition.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valen
.
The exception of the locking strategy are functions called
during initialization of cdev and tz.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_
Serialized calls to tz.ops in user facing
sysfs handler mode_show() and mode_store().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_sysfs.c | 13
.
The exception of the locking strategy are functions called
during initialization of cdev and tz.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 16 +++-
1 file changed, 15 insertions(+), 1
Serialized calls to tz.ops in user facing
sysfs handler mode_show() and mode_store().
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 13 ++---
1 file changed, 10 insertions(+), 3
Serialized calls to tz.ops in user facing
sysfs handler policy_show().
policy_store() is already locked by
the thermal core.
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
dri
Serialized calls to tz.ops in user facing
sysfs handler trip_point_hyst_store() and
trip_point_hyst_show().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/the
Serialized calls to tz.ops in user facing
sysfs handler trip_point_temp_show() and trip_point_temp_store().
Cc: Zhang Rui <rui.zh...@intel.com>
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/the
linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubez...@gmail.com>
---
drivers/thermal/thermal_sysfs.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index 5b08d64..86
Serialized calls to tz.ops in user facing
sysfs handler trip_point_temp_show() and trip_point_temp_store().
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 4
1 file changed, 4 insertions
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index 5b08d64..86a77cd 100644
--- a/drivers/thermal/thermal_sysfs.c
+++ b/drivers
Serialized calls to tz.ops in user facing
sysfs handler policy_show().
policy_store() is already locked by
the thermal core.
Cc: Zhang Rui
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sysfs.c | 8 +++-
1 file
701 - 800 of 3753 matches
Mail list logo