<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/hwmon, branch v4.1-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>hwmon: (w83795) use find_closest_descending() in pwm_freq_to_reg()</title>
<updated>2015-04-17T13:03:55+00:00</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bgolaszewski@baylibre.com</email>
</author>
<published>2015-04-16T19:43:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=cdb1dc3f1ca5c5899e5fa186afe20390bd8c00dc'/>
<id>cdb1dc3f1ca5c5899e5fa186afe20390bd8c00dc</id>
<content type='text'>
Replace the loop iterating over pwm_freq_cksel0 with a call to
find_closest_descending().

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the loop iterating over pwm_freq_cksel0 with a call to
find_closest_descending().

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (lm85) use find_closest() in x_TO_REG() functions</title>
<updated>2015-04-17T13:03:55+00:00</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bgolaszewski@baylibre.com</email>
</author>
<published>2015-04-16T19:43:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0f3721c51ec5643e00f07dd3bbc5712c72fc62b2'/>
<id>0f3721c51ec5643e00f07dd3bbc5712c72fc62b2</id>
<content type='text'>
Replace RANGE_TO_REG() and FREQ_TO_REG() implementations with
calls to find_closest().

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace RANGE_TO_REG() and FREQ_TO_REG() implementations with
calls to find_closest().

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (ina2xx) replace ina226_avg_bits() with find_closest()</title>
<updated>2015-04-17T13:03:54+00:00</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bgolaszewski@baylibre.com</email>
</author>
<published>2015-04-16T19:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d38df34e3f0ea1e65c7db5d33d132dc14da0009a'/>
<id>d38df34e3f0ea1e65c7db5d33d132dc14da0009a</id>
<content type='text'>
Use find_closest() to locate the closest average in ina226_avg_tab.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use find_closest() to locate the closest average in ina226_avg_tab.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (pwm-fan) Update the duty cycle inorder to control the pwm-fan</title>
<updated>2015-04-12T22:59:11+00:00</updated>
<author>
<name>Anand Moon</name>
<email>linux.amoon@gmail.com</email>
</author>
<published>2015-04-12T18:44:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f354169e0f7dcd1b2c82cf1f98f6d976e85f74c3'/>
<id>f354169e0f7dcd1b2c82cf1f98f6d976e85f74c3</id>
<content type='text'>
pwm_config() must be called with a duty cycle of 0 prior to calling
pwm_disable() to ensure that the pwm signal is set to low.

Reported-by: Markus Reichl &lt;m.reichl@fivetechno.de&gt;
Tested-by: Markus Reichl &lt;m.reichl@fivetechno.de&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Reviewed-by: Sjoerd Simons &lt;sjoerd.simons@collabora.co.uk&gt;
Signed-off-by: Anand Moon &lt;linux.amoon@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pwm_config() must be called with a duty cycle of 0 prior to calling
pwm_disable() to ensure that the pwm signal is set to low.

Reported-by: Markus Reichl &lt;m.reichl@fivetechno.de&gt;
Tested-by: Markus Reichl &lt;m.reichl@fivetechno.de&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Reviewed-by: Sjoerd Simons &lt;sjoerd.simons@collabora.co.uk&gt;
Signed-off-by: Anand Moon &lt;linux.amoon@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (it87) Use feature macros on sio_data</title>
<updated>2015-04-09T13:39:11+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2015-03-31T16:31:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f83a9cb6228472a464c2ab4abb9bd1e83939aec2'/>
<id>f83a9cb6228472a464c2ab4abb9bd1e83939aec2</id>
<content type='text'>
Feature macros work on sio_data as well, so use them there.

Reviewed-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Feature macros work on sio_data as well, so use them there.

Reviewed-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (ibmpowernv) Fix build error seen for some configurations</title>
<updated>2015-04-09T04:03:39+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2015-04-09T04:02:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=8416915c16d4335980c5d5d6d39957adbfe40b55'/>
<id>8416915c16d4335980c5d5d6d39957adbfe40b55</id>
<content type='text'>
Fix
drivers/hwmon/ibmpowernv.c: In function 'get_logical_cpu':
drivers/hwmon/ibmpowernv.c:121:3:
	error: implicit declaration of function 'get_hard_smp_processor_id'

seen for some configurations, possibly if SMP is not configured.

Fixes: 3df2f59f0aae ("hwmon: (ibmpowernv) pretty print labels")
Cc: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix
drivers/hwmon/ibmpowernv.c: In function 'get_logical_cpu':
drivers/hwmon/ibmpowernv.c:121:3:
	error: implicit declaration of function 'get_hard_smp_processor_id'

seen for some configurations, possibly if SMP is not configured.

Fixes: 3df2f59f0aae ("hwmon: (ibmpowernv) pretty print labels")
Cc: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (gpio-fan) Move the thermal registration after registration is complete</title>
<updated>2015-04-09T03:34:43+00:00</updated>
<author>
<name>Nishanth Menon</name>
<email>nm@ti.com</email>
</author>
<published>2015-04-08T23:23:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e76ea26142821894bf78b0b311c8f7aceff0aa9b'/>
<id>e76ea26142821894bf78b0b311c8f7aceff0aa9b</id>
<content type='text'>
Thermal framework may already be ready and cooling policies might
already be functional when we are attempting to register gpio fan as
a cooling device. This can be reproduced by changing probe order in
which registration of various modules are done in a system. In such
a case, kernel generates an oops since the data structures are not
completely populated with the wrong assumption that thermal framework
is not yet ready. Fix this by reordering the thermal framework
registration to occur after hwmon registration of the fan is complete.

Example kernel oops:
[  149.005828] Unable to handle kernel NULL pointer dereference at virtual address 0000008c
[  149.014369] pgd = ecf48000
[  149.017204] [0000008c] *pgd=ac065831, *pte=00000000, *ppte=00000000
[  149.023820] Internal error: Oops: 17 [#1] SMP ARM
[  149.028745] Modules linked in: gpio_fan(+) cpufreq_dt ipv6 evdev leds_gpio led_class omap_wdt phy_omap_usb2 rtc_palmas palmas_pwrbutton tmp102 ti_soc_thermal dwc3_omap thermal_sys extcon rtc_omap rtc_ds1307 hwmon
[  149.048629] CPU: 1 PID: 1183 Comm: modprobe Not tainted 4.0.0-rc7-next-20150407-00002-g7a82da074c99 #3
[  149.058383] Hardware name: Generic DRA74X (Flattened Device Tree)
[  149.064763] task: edec1240 ti: ec0e0000 task.ti: ec0e0000
[  149.070421] PC is at dev_driver_string+0x0/0x38
[  149.075165] LR is at __dev_printk+0x24/0x70
[  149.079540] pc : [&lt;c03d6cd0&gt;]    lr : [&lt;c03d72c4&gt;]    psr: 20000013
[  149.079540] sp : ec0e1c28  ip : edec1240  fp : 00000000
[  149.091568] r10: edf3eee0  r9 : 00000000  r8 : ffffffff
[  149.097040] r7 : edf3eea0  r6 : 00000034  r5 : 00000010  r4 : ec0e1c44
[  149.103871] r3 : ec0e1c4c  r2 : ec0e1c44  r1 : c079d800  r0 : 00000010
[  149.110709] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  149.118182] Control: 10c5387d  Table: acf4806a  DAC: 00000015
[  149.124198] Process modprobe (pid: 1183, stack limit = 0xec0e0218)
[  149.130673] Stack: (0xec0e1c28 to 0xec0e2000)
[  149.135235] 1c20:                   60000013 c05e2ae0 00000000 edf3ec00 ec934a10 c03d73d4
...
[  149.392230] 1fe0: befe1888 befe1878 00019418 b6ea08f0 80000010 00000003 00000000 00000000
[  149.400798] [&lt;c03d6cd0&gt;] (dev_driver_string) from [&lt;c03d72c4&gt;] (__dev_printk+0x24/0x70)
[  149.409193] [&lt;c03d72c4&gt;] (__dev_printk) from [&lt;c03d73d4&gt;] (dev_warn+0x34/0x48)
[  149.416767] [&lt;c03d73d4&gt;] (dev_warn) from [&lt;bf0f54fc&gt;] (get_fan_speed_index+0x94/0xa4 [gpio_fan])
[  149.425980] [&lt;bf0f54fc&gt;] (get_fan_speed_index [gpio_fan]) from [&lt;bf0f5524&gt;] (gpio_fan_get_cur_state+0x18/0x30 [gpio_fan])
[  149.437476] [&lt;bf0f5524&gt;] (gpio_fan_get_cur_state [gpio_fan]) from [&lt;bf02767c&gt;] (thermal_zone_trip_update+0xe8/0x2a4 [thermal_sys])
[  149.449794] [&lt;bf02767c&gt;] (thermal_zone_trip_update [thermal_sys]) from [&lt;bf027844&gt;] (step_wise_throttle+0xc/0x74 [thermal_sys])
[  149.461832] [&lt;bf027844&gt;] (step_wise_throttle [thermal_sys]) from [&lt;bf024ff4&gt;] (handle_thermal_trip+0x5c/0x188 [thermal_sys])
[  149.473603] [&lt;bf024ff4&gt;] (handle_thermal_trip [thermal_sys]) from [&lt;bf0256c4&gt;] (thermal_zone_device_update+0x94/0x108 [thermal_sys])
[  149.486104] [&lt;bf0256c4&gt;] (thermal_zone_device_update [thermal_sys]) from [&lt;bf026470&gt;] (__thermal_cooling_device_register+0x2e8/0x374 [thermal_sys])
[  149.499956] [&lt;bf026470&gt;] (__thermal_cooling_device_register [thermal_sys]) from [&lt;bf0f58e4&gt;] (gpio_fan_probe+0x350/0x4d0 [gpio_fan])
[  149.512438] [&lt;bf0f58e4&gt;] (gpio_fan_probe [gpio_fan]) from [&lt;c03db8a0&gt;] (platform_drv_probe+0x48/0x98)
[  149.522109] [&lt;c03db8a0&gt;] (platform_drv_probe) from [&lt;c03da30c&gt;] (driver_probe_device+0x1b0/0x26c)
[  149.531399] [&lt;c03da30c&gt;] (driver_probe_device) from [&lt;c03da45c&gt;] (__driver_attach+0x94/0x98)
[  149.540238] [&lt;c03da45c&gt;] (__driver_attach) from [&lt;c03d8bb0&gt;] (bus_for_each_dev+0x54/0x88)
[  149.548814] [&lt;c03d8bb0&gt;] (bus_for_each_dev) from [&lt;c03d9a34&gt;] (bus_add_driver+0xdc/0x1d4)
[  149.557381] [&lt;c03d9a34&gt;] (bus_add_driver) from [&lt;c03dac30&gt;] (driver_register+0x78/0xf4)
[  149.565765] [&lt;c03dac30&gt;] (driver_register) from [&lt;c0009784&gt;] (do_one_initcall+0x80/0x1d8)
[  149.574340] [&lt;c0009784&gt;] (do_one_initcall) from [&lt;c00c2278&gt;] (do_init_module+0x5c/0x1b8)
[  149.582833] [&lt;c00c2278&gt;] (do_init_module) from [&lt;c00c3bbc&gt;] (load_module+0x1720/0x1dcc)
[  149.591212] [&lt;c00c3bbc&gt;] (load_module) from [&lt;c00c43d0&gt;] (SyS_finit_module+0x68/0x6c)
[  149.599418] [&lt;c00c43d0&gt;] (SyS_finit_module) from [&lt;c000f3c0&gt;] (ret_fast_syscall+0x0/0x4c)
[  149.607994] Code: 15830000 e1a00006 e28dd008 e8bd8070 (e590307c)

Cc: Eduardo Valentin &lt;edubezval@gmail.com&gt;
Fixes: b5cf88e46bad ("(gpio-fan): Add thermal control hooks")
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thermal framework may already be ready and cooling policies might
already be functional when we are attempting to register gpio fan as
a cooling device. This can be reproduced by changing probe order in
which registration of various modules are done in a system. In such
a case, kernel generates an oops since the data structures are not
completely populated with the wrong assumption that thermal framework
is not yet ready. Fix this by reordering the thermal framework
registration to occur after hwmon registration of the fan is complete.

Example kernel oops:
[  149.005828] Unable to handle kernel NULL pointer dereference at virtual address 0000008c
[  149.014369] pgd = ecf48000
[  149.017204] [0000008c] *pgd=ac065831, *pte=00000000, *ppte=00000000
[  149.023820] Internal error: Oops: 17 [#1] SMP ARM
[  149.028745] Modules linked in: gpio_fan(+) cpufreq_dt ipv6 evdev leds_gpio led_class omap_wdt phy_omap_usb2 rtc_palmas palmas_pwrbutton tmp102 ti_soc_thermal dwc3_omap thermal_sys extcon rtc_omap rtc_ds1307 hwmon
[  149.048629] CPU: 1 PID: 1183 Comm: modprobe Not tainted 4.0.0-rc7-next-20150407-00002-g7a82da074c99 #3
[  149.058383] Hardware name: Generic DRA74X (Flattened Device Tree)
[  149.064763] task: edec1240 ti: ec0e0000 task.ti: ec0e0000
[  149.070421] PC is at dev_driver_string+0x0/0x38
[  149.075165] LR is at __dev_printk+0x24/0x70
[  149.079540] pc : [&lt;c03d6cd0&gt;]    lr : [&lt;c03d72c4&gt;]    psr: 20000013
[  149.079540] sp : ec0e1c28  ip : edec1240  fp : 00000000
[  149.091568] r10: edf3eee0  r9 : 00000000  r8 : ffffffff
[  149.097040] r7 : edf3eea0  r6 : 00000034  r5 : 00000010  r4 : ec0e1c44
[  149.103871] r3 : ec0e1c4c  r2 : ec0e1c44  r1 : c079d800  r0 : 00000010
[  149.110709] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  149.118182] Control: 10c5387d  Table: acf4806a  DAC: 00000015
[  149.124198] Process modprobe (pid: 1183, stack limit = 0xec0e0218)
[  149.130673] Stack: (0xec0e1c28 to 0xec0e2000)
[  149.135235] 1c20:                   60000013 c05e2ae0 00000000 edf3ec00 ec934a10 c03d73d4
...
[  149.392230] 1fe0: befe1888 befe1878 00019418 b6ea08f0 80000010 00000003 00000000 00000000
[  149.400798] [&lt;c03d6cd0&gt;] (dev_driver_string) from [&lt;c03d72c4&gt;] (__dev_printk+0x24/0x70)
[  149.409193] [&lt;c03d72c4&gt;] (__dev_printk) from [&lt;c03d73d4&gt;] (dev_warn+0x34/0x48)
[  149.416767] [&lt;c03d73d4&gt;] (dev_warn) from [&lt;bf0f54fc&gt;] (get_fan_speed_index+0x94/0xa4 [gpio_fan])
[  149.425980] [&lt;bf0f54fc&gt;] (get_fan_speed_index [gpio_fan]) from [&lt;bf0f5524&gt;] (gpio_fan_get_cur_state+0x18/0x30 [gpio_fan])
[  149.437476] [&lt;bf0f5524&gt;] (gpio_fan_get_cur_state [gpio_fan]) from [&lt;bf02767c&gt;] (thermal_zone_trip_update+0xe8/0x2a4 [thermal_sys])
[  149.449794] [&lt;bf02767c&gt;] (thermal_zone_trip_update [thermal_sys]) from [&lt;bf027844&gt;] (step_wise_throttle+0xc/0x74 [thermal_sys])
[  149.461832] [&lt;bf027844&gt;] (step_wise_throttle [thermal_sys]) from [&lt;bf024ff4&gt;] (handle_thermal_trip+0x5c/0x188 [thermal_sys])
[  149.473603] [&lt;bf024ff4&gt;] (handle_thermal_trip [thermal_sys]) from [&lt;bf0256c4&gt;] (thermal_zone_device_update+0x94/0x108 [thermal_sys])
[  149.486104] [&lt;bf0256c4&gt;] (thermal_zone_device_update [thermal_sys]) from [&lt;bf026470&gt;] (__thermal_cooling_device_register+0x2e8/0x374 [thermal_sys])
[  149.499956] [&lt;bf026470&gt;] (__thermal_cooling_device_register [thermal_sys]) from [&lt;bf0f58e4&gt;] (gpio_fan_probe+0x350/0x4d0 [gpio_fan])
[  149.512438] [&lt;bf0f58e4&gt;] (gpio_fan_probe [gpio_fan]) from [&lt;c03db8a0&gt;] (platform_drv_probe+0x48/0x98)
[  149.522109] [&lt;c03db8a0&gt;] (platform_drv_probe) from [&lt;c03da30c&gt;] (driver_probe_device+0x1b0/0x26c)
[  149.531399] [&lt;c03da30c&gt;] (driver_probe_device) from [&lt;c03da45c&gt;] (__driver_attach+0x94/0x98)
[  149.540238] [&lt;c03da45c&gt;] (__driver_attach) from [&lt;c03d8bb0&gt;] (bus_for_each_dev+0x54/0x88)
[  149.548814] [&lt;c03d8bb0&gt;] (bus_for_each_dev) from [&lt;c03d9a34&gt;] (bus_add_driver+0xdc/0x1d4)
[  149.557381] [&lt;c03d9a34&gt;] (bus_add_driver) from [&lt;c03dac30&gt;] (driver_register+0x78/0xf4)
[  149.565765] [&lt;c03dac30&gt;] (driver_register) from [&lt;c0009784&gt;] (do_one_initcall+0x80/0x1d8)
[  149.574340] [&lt;c0009784&gt;] (do_one_initcall) from [&lt;c00c2278&gt;] (do_init_module+0x5c/0x1b8)
[  149.582833] [&lt;c00c2278&gt;] (do_init_module) from [&lt;c00c3bbc&gt;] (load_module+0x1720/0x1dcc)
[  149.591212] [&lt;c00c3bbc&gt;] (load_module) from [&lt;c00c43d0&gt;] (SyS_finit_module+0x68/0x6c)
[  149.599418] [&lt;c00c43d0&gt;] (SyS_finit_module) from [&lt;c000f3c0&gt;] (ret_fast_syscall+0x0/0x4c)
[  149.607994] Code: 15830000 e1a00006 e28dd008 e8bd8070 (e590307c)

Cc: Eduardo Valentin &lt;edubezval@gmail.com&gt;
Fixes: b5cf88e46bad ("(gpio-fan): Add thermal control hooks")
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (ibmpowernv) pretty print labels</title>
<updated>2015-04-08T17:34:20+00:00</updated>
<author>
<name>Cédric Le Goater</name>
<email>clg@fr.ibm.com</email>
</author>
<published>2015-04-08T17:19:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3df2f59f0aae2f5380a9d8037c91dcab75c4478d'/>
<id>3df2f59f0aae2f5380a9d8037c91dcab75c4478d</id>
<content type='text'>
The new OPAL device tree adds a few properties which can be used to add
extra information on the sensor label.

In the case of a cpu core sensor, the firmware exposes the physical
identifier of the core in the "ibm,pir" property. The driver
translates this identifier in a linux cpu number and prints out a
range corresponding to the hardware threads of the core (as they
share the same sensor).

The numbering gives a hint on the localization of the core in the
system (which socket, which chip).

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new OPAL device tree adds a few properties which can be used to add
extra information on the sensor label.

In the case of a cpu core sensor, the firmware exposes the physical
identifier of the core in the "ibm,pir" property. The driver
translates this identifier in a linux cpu number and prints out a
range corresponding to the hardware threads of the core (as they
share the same sensor).

The numbering gives a hint on the localization of the core in the
system (which socket, which chip).

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (ibmpowernv) add a label attribute</title>
<updated>2015-04-08T17:34:20+00:00</updated>
<author>
<name>Cédric Le Goater</name>
<email>clg@fr.ibm.com</email>
</author>
<published>2015-04-08T17:19:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2bcd3787b946b725a37763c0877da0996f5ec064'/>
<id>2bcd3787b946b725a37763c0877da0996f5ec064</id>
<content type='text'>
Currently, sensors are only identified by their type and index.

The new OPAL device tree can expose extra properties to identify
some sensors by their name or location. This patch adds the creation
of a new hwmon *_label attribute when such properties are detected.

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, sensors are only identified by their type and index.

The new OPAL device tree can expose extra properties to identify
some sensors by their name or location. This patch adds the creation
of a new hwmon *_label attribute when such properties are detected.

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (ibmpowernv) add support for the new device tree</title>
<updated>2015-04-08T17:34:20+00:00</updated>
<author>
<name>Cédric Le Goater</name>
<email>clg@fr.ibm.com</email>
</author>
<published>2015-04-08T17:19:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=14681637ab3013d3577cc59633159f425733532e'/>
<id>14681637ab3013d3577cc59633159f425733532e</id>
<content type='text'>
The new OPAL device tree for sensors has a different layout and uses new
property names, for the type and for the handler used to capture the
sensor data.

This patch modifies the ibmpowernv driver to support such a tree in a
way preserving compatibility with older OPAL firmwares.

This is achieved by changing the error path of the routine parsing
an OPAL node name. The node is simply considered being from the new
device tree layout and fallback values are used.

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new OPAL device tree for sensors has a different layout and uses new
property names, for the type and for the handler used to capture the
sensor data.

This patch modifies the ibmpowernv driver to support such a tree in a
way preserving compatibility with older OPAL firmwares.

This is achieved by changing the error path of the routine parsing
an OPAL node name. The node is simply considered being from the new
device tree layout and fallback values are used.

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
