[Nouveau] [PATCH v8 5/5] nouveau/hwmon: Change permissions to numeric

2017-05-18 Thread Oscar Salvador
This patch replaces the symbolic permissions with the numeric ones. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 10 +- 1 file changed, 5 insertions(+), 5 deleti

[Nouveau] [PATCH v8 4/5] nouveau/hwmon: expose the auto_point and pwm_min/max attrs

2017-05-18 Thread Oscar Salvador
or pwm_min/max attrs. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 34 - 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/d

[Nouveau] [PATCH v8 2/5] nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-05-18 Thread Oscar Salvador
to make easier the review of all patches. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 163 1 file changed, 163 insertions(+) diff --git a

[Nouveau] [PATCH v8 3/5] nouveau/hwmon: Remove old code, add .write/.read operations

2017-05-18 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu

[Nouveau] [PATCH v8 1/5] nouveau/hwmon: Add config for all sensors and their settings

2017-05-18 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe..

[Nouveau] [PATCH v8 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-05-18 Thread Oscar Salvador
ister function with the new one hwmon_device_register_with_info. It also does some cleanup. Oscar Salvador (5): nouveau/hwmon: Add config for all sensors and their settings nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string nouveau/hwmon: Remove old code, add .write/.read ope

Re: [Nouveau] [PATCH v7 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-05-17 Thread Oscar Salvador
Hi Ben, I'll fix the warnings. Thanks for the time Regards Oscar Salvador On 17 May 2017 at 01:06, Ben Skeggs <skeg...@gmail.com> wrote: > On 05/17/2017 07:18 AM, Oscar Salvador wrote: >> >> This v7 fixes removes dummy functions which only had a return and moves >>

[Nouveau] [PATCH v7 3/5] nouveau/hwmon: Remove old code, add .write/.read operations

2017-05-16 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu

[Nouveau] [PATCH v7 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-05-16 Thread Oscar Salvador
_register_with_info. It also does some cleanup. Oscar Salvador (5): nouveau/hwmon: Add config for all sensors and their settings nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string nouveau/hwmon: Remove old code, add .write/.read operations nouveau/hwmon: expos

[Nouveau] [PATCH v7 5/5] nouveau/hwmon: Change permissions to numeric

2017-05-16 Thread Oscar Salvador
This patch replaces the symbolic permissions with the numeric ones. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 10 +- 1 file changed, 5 insertions(+), 5 deleti

[Nouveau] [PATCH v7 1/5] nouveau/hwmon: Add config for all sensors and their settings

2017-05-16 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe..

[Nouveau] [PATCH v7 4/5] nouveau/hwmon: expose the auto_point and pwm_min/max attrs

2017-05-16 Thread Oscar Salvador
or pwm_min/max attrs. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/d

[Nouveau] [PATCH v7 2/5] nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-05-16 Thread Oscar Salvador
to make easier the review of all patches. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 163 1 file changed, 163 insertions(+) diff --git a

[Nouveau] [PATCH v6 4/5] nouveau/hwmon: expose the auto_point and pwm_min/max attrs

2017-05-08 Thread Oscar Salvador
or pwm_min/max attrs. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/d

[Nouveau] [PATCH v6 5/5] nouveau/hwmon: Change permissions to numeric

2017-05-08 Thread Oscar Salvador
This patch replaces the symbolic permissions with the numeric ones. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 10 +- 1 file changed, 5 insertions(+), 5 deleti

[Nouveau] [PATCH v6 2/5] nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-05-08 Thread Oscar Salvador
to make easier the review of all patches. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 163 1 file changed, 163 insertions(+) diff --git a

[Nouveau] [PATCH v6 3/5] nouveau/hwmon: Remove old code, add .write/.read operations

2017-05-08 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe...@free.fr> --- drivers/gpu

[Nouveau] [PATCH v6 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-05-08 Thread Oscar Salvador
nouveau_temp_write This patchseries replaces the deprecated hwmon_device_register function with the new one hwmon_device_register_with_info. It also does some cleanup. Oscar Salvador (5): nouveau/hwmon: Add config for all sensors and their settings nouveau/hwmon: Add nouveau_hwmon_ops struc

[Nouveau] [PATCH v6 1/5] nouveau/hwmon: Add config for all sensors and their settings

2017-05-08 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> Reviewed-by: Martin Peres <martin.pe..

[Nouveau] [PATCH v5 4/5] nouveau_hwmon: Add support for auto_point attributes

2017-04-26 Thread Oscar Salvador
This patch creates a special group attributes for attrs like "*auto_point*". We check if we have support for them, and if we do, we gather them all in an attribute_group's structure which is the parameter regarding special groups of hwmon_device_register_with_info. Signed-off-by: Osca

[Nouveau] [PATCH v5 3/5] nouveau_hwmon: Remove old code, add .write/.read operations

2017-04-26 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 722 +++-

[Nouveau] [PATCH v5 5/5] nouveau_hwmon: Change permissions to numeric

2017-04-26 Thread Oscar Salvador
This patch replaces the symbolic permissions with the numeric ones, and adds me to the authors too. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[Nouveau] [PATCH v5 1/5] nouveau_hwmon: Add config for all sensors and their settings

2017-04-26 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.

[Nouveau] [PATCH v5 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-26 Thread Oscar Salvador
to make easier the review of all patches. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 170 1 file changed, 170 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/g

[Nouveau] [PATCH v5 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-04-26 Thread Oscar Salvador
to struct attribute. Kbuild complains. v4 -> v5: * Drops a check for attr_set in "nouveau_temp_is_visible". This patchseries replaces the deprecated hwmon_device_register function with the new one hwmon_device_register_with_info. It also does some cleanup. Oscar Salvador (5)

[Nouveau] [PATCH v4 3/5] nouveau_hwmon: Remove old code, add .write/.read operations

2017-04-22 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 722 +++-

[Nouveau] [PATCH v4 5/5] nouveau_hwmon: Change permissions to numeric

2017-04-22 Thread Oscar Salvador
This patch replaces the symbolic permissions with the numeric ones, and adds me to the authors too. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[Nouveau] [PATCH v4 4/5] nouveau_hwmon: Add support for auto_point attributes

2017-04-22 Thread Oscar Salvador
This patch creates a special group attributes for attrs like "*auto_point*". We check if we have support for them, and if we do, we gather them all in an attribute_group's structure which is the parameter regarding special groups of hwmon_device_register_with_info. Signed-off-by: Osca

[Nouveau] [PATCH v4 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-22 Thread Oscar Salvador
to make easier the review of all patches. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 171 1 file changed, 171 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/g

[Nouveau] [PATCH v4 1/5] nouveau_hwmon: Add config for all sensors and their settings

2017-04-22 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.

[Nouveau] [PATCH v4 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-04-22 Thread Oscar Salvador
e cleanup. Oscar Salvador (5): nouveau_hwmon: Add config for all sensors and their settings nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string nouveau_hwmon: Remove old code, add .write/.read operations nouveau_hwmon: Add support for auto_point attributes nouv

[Nouveau] [PATCH v3 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-04-21 Thread Oscar Salvador
s like *_auto_point*. 5/ Cleanup: Change permissions to numeric and add me to the author Oscar Salvador (5): nouveau_hwmon: Add config for all sensors and their settings nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string nouveau_hwmon: Remove old code, add .write

[Nouveau] [PATCH v3 4/5] nouveau_hwmon: Add support for auto_point attributes

2017-04-21 Thread Oscar Salvador
This patch creates a special group attributes for attrs like "*auto_point*". We check if we have support for them, and if we do, we gather them all in an attribute_group's structure which is the parameter regarding special groups of hwmon_device_register_with_info. Signed-off-by: Osca

[Nouveau] [PATCH v3 5/5] nouveau_hwmon: Change permissions to numeric

2017-04-21 Thread Oscar Salvador
This patch replaces the symbolic permissions with the numeric ones, and adds me to the authors too. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[Nouveau] [PATCH v3 3/5] nouveau_hwmon: Remove old code, add .write/.read operations

2017-04-21 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 722 +++-

[Nouveau] [PATCH v3 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-21 Thread Oscar Salvador
to make easier the review of all patches. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 171 1 file changed, 171 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/g

[Nouveau] [PATCH v3 1/5] nouveau_hwmon: Add config for all sensors and their settings

2017-04-21 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. Signed-off-by: Oscar Salvador <osalvador.vilard...@gmail.com> --- drivers/gpu/drm/nouveau/nouveau_hwmon.

Re: [Nouveau] [PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-20 Thread Oscar Salvador
I got what you meant. I"ll fix it El dia 20/04/2017 08:47, "Oscar Salvador" <osalvador.vilard...@gmail.com> va escriure: > Hi Karol, > > I don't get what you mean with return due to fallthrough. I mean, I > know what is it, but I don't see how I can do it

Re: [Nouveau] [PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-20 Thread Oscar Salvador
if (iccsense->power_w_crit) return 0444; default: return 0; } Could you drop me a hint? On 18 April 2017 at 09:56, Karol Herbst <karolher...@gmail.com> wrote: > 2017-04-17 9:47 GMT+02:00 Oscar Salvador <osalvador.vilard...@gmai

Re: [Nouveau] [PATCH v2 1/5] nouveau_hwmon: Add config for all sensors and their settings

2017-04-19 Thread Oscar Salvador
-developer-s-certificate-of-origin > > On Mon, Apr 17, 2017 at 3:47 AM, Oscar Salvador > <osalvador.vilard...@gmail.com> wrote: >> This is a preparation for the next patches. It just adds the sensors with >> their possible configurable settings and then fills the st

[Nouveau] [PATCH v2 4/5] nouveau_hwmon: Add support for auto_point attributes

2017-04-17 Thread Oscar Salvador
This patch creates a special group attributes for attrs like "*auto_point*". We check if we have support for them, and if we do, we gather them all in an attribute_group's structure which is the parameter regarding special groups of hwmon_device_register_with_info. ---

[Nouveau] [PATCH v2 1/5] nouveau_hwmon: Add config for all sensors and their settings

2017-04-17 Thread Oscar Salvador
This is a preparation for the next patches. It just adds the sensors with their possible configurable settings and then fills the struct hwmon_channel_info with all this information. --- drivers/gpu/drm/nouveau/nouveau_hwmon.c | 72 + 1 file changed, 72

[Nouveau] [PATCH v2 5/5] nouveau_hwmon: Change permissions to numeric

2017-04-17 Thread Oscar Salvador
/nouveau_hwmon.c index 655ae11..99e2a3a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hwmon.c +++ b/drivers/gpu/drm/nouveau/nouveau_hwmon.c @@ -1,5 +1,6 @@ /* - * Copyright 2010 Red Hat Inc. + * Copyright 2010 Red Hat Inc. (Ben Skeggs) + * Copyright 2017 Oscar Salvador * * Permission is hereby

[Nouveau] [PATCH v2 0/5] replace hwmon_device_register for hwmon_device_register_with_info

2017-04-17 Thread Oscar Salvador
support for special attributes like *_auto_point*. 5/ Cleanup: Change permissions to numeric and add me to the author Oscar Salvador (5): nouveau_hwmon: Add config for all sensors and their settings nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string nouveau_hwmon

[Nouveau] [PATCH v2 3/5] nouveau_hwmon: Remove old code, add .write/.read operations

2017-04-17 Thread Oscar Salvador
This patch removes old code related to the old api and transforms the functions for the new api. It also adds the .write and .read operations. Since we don't want to support changing hwmon_temp_* values, this patch deletes all write-functions for these attributes too. ---

[Nouveau] [PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-17 Thread Oscar Salvador
This patch introduces the nouveau_hwmon_ops structure, sets up .is_visible and .read_string operations and adds all the functions for these operations. This is also a preparation for the next patches, where most of the work is being done. This code doesn't interacture with the old one. It's just

Re: [Nouveau] [PATCH 1/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-14 Thread Oscar Salvador
her...@gmail.com> wrote: > 2017-04-13 11:08 GMT+02:00 Oscar Salvador <osalvador.vilard...@gmail.com>: >> This patch introduces the structure "struct hwmon_ops" and sets up the >> ".visible" operation. >> Is also a preparation for the next patch where al

Re: [Nouveau] [PATCH 1/1] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
y to review like this. And it isn't bisectable. If there are clean ups here, please do it in a seperate patch. I highly doubt that it all has to be done within one single big patch. 2017-04-11 18:54 GMT+02:00 Oscar Salvador <osalvador.vilard...@gmail.com>: > Hi, > > this patch replace

[Nouveau] [PATCH 1/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
This patch introduces the structure "struct hwmon_ops" and sets up the ".visible" operation. Is also a preparation for the next patch. --- linux/drivers/gpu/drm/nouveau/nouveau_hwmon.c.orig 2017-04-12 19:18:09.638073562 +0200 +++ linux/drivers/gpu/drm/nouveau/nouveau_hwmon.c 2017-04-12

[Nouveau] [PATCH 4/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
@@ /* - * Copyright 2010 Red Hat Inc. + * Copyright 2010 Red Hat Inc. (Ben Skeggs) + * Copyright 2017 Oscar Salvador * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -

[Nouveau] [PATCH 3/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
This patch creates special group attributes for special attrs like "*auto_point*". We check if we need them, and if we do, we set them up in special_groups structure, that then we pass to hwmon_device_register_with_info. --- linux/drivers/gpu/drm/nouveau/nouveau_hwmon.c.orig 2017-04-13

[Nouveau] [PATCH 2/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
Here is where most of the work is being done. We are replacing the old API with the new one, that means changing the functions layout and remove unnecessary code. We also set up the other operations: .read .write .read_string --- linux/drivers/gpu/drm/nouveau/nouveau_hwmon.c.orig 2017-04-13

[Nouveau] [PATCH 1/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
This patch introduces the structure "struct hwmon_ops" and sets up the ".visible" operation. Is also a preparation for the next patch where all work is being done. --- linux/drivers/gpu/drm/nouveau/nouveau_hwmon.c.orig 2017-04-12 19:22:29.070573187 +0200 +++

[Nouveau] [PATCH 0/4] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-13 Thread Oscar Salvador
Hi again, I've split the patches as Karol Herbst suggested. I hope now it's fine. This series of patches introduce the new hwmon_device_register_with_info and gets rid of the old hwmon_device_register. This patch adds the default sensors with their possible config values. Just to prepare for

[Nouveau] [PATCH 1/1] nouveau_hwmon: migrate to hwmon_device_register_with_info

2017-04-11 Thread Oscar Salvador
/drm/nouveau/nouveau_hwmon.c 2017-04-11 18:45:41.918688215 +0200 @@ -1,5 +1,6 @@ /* - * Copyright 2010 Red Hat Inc. + * Copyright 2010 Red Hat Inc. (Ben Skeggs) + * Copyright 2017 Oscar Salvador * * Permission is hereby granted, free of charge, to any person obtaining a * copy