1. 24 1月, 2015 1 次提交
  2. 08 12月, 2014 1 次提交
  3. 06 12月, 2014 1 次提交
  4. 05 12月, 2014 4 次提交
    • N
      hwmon: (gpio-fan) Add a shutdown handler to poweroff the fans · b95579cd
      Nishanth Menon 提交于
      Poweroff the fans when shutting down the system. Else,
      echo '1' > /sys/class/hwmon/hwmon0/fan1_target; poweroff leaves the
      fan running if the System power off does not drive the gpio expander
      which might control the fan power supply.
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      b95579cd
    • N
      hwmon: (gpio-fan) Allow usage of gpio operations that may sleep · 52a95c11
      Nishanth Menon 提交于
      Certain I2C based GPIO expanders could be used in sleepable context,
      this results in:
      [  115.890569] ------------[ cut here ]------------
      [  115.895422] WARNING: CPU: 0 PID: 1115 at drivers/gpio/gpiolib.c:1370 gpiod_set_raw_value+0x40/0x4c()
      [  115.905024] Modules linked in:
      [  115.908229] CPU: 0 PID: 1115 Comm: sh Tainted: G        W      3.18.0-rc7-next-20141203-dirty #1
      [  115.917461] Hardware name: Generic DRA74X (Flattened Device Tree)
      [  115.923876] [<c0015368>] (unwind_backtrace) from [<c00119f4>] (show_stack+0x10/0x14)
      [  115.932013] [<c00119f4>] (show_stack) from [<c05b78e8>] (dump_stack+0x78/0x94)
      [  115.939594] [<c05b78e8>] (dump_stack) from [<c003de28>] (warn_slowpath_common+0x7c/0xb4)
      [  115.948094] [<c003de28>] (warn_slowpath_common) from [<c003de7c>] (warn_slowpath_null+0x1c/0x24)
      [  115.957315] [<c003de7c>] (warn_slowpath_null) from [<c03461e8>] (gpiod_set_raw_value+0x40/0x4c)
      [  115.966457] [<c03461e8>] (gpiod_set_raw_value) from [<c04866f4>] (set_fan_speed+0x4c/0x64)
      [  115.975145] [<c04866f4>] (set_fan_speed) from [<c04868a8>] (set_rpm+0x98/0xac)
      [  115.982742] [<c04868a8>] (set_rpm) from [<c039fb4c>] (dev_attr_store+0x18/0x24)
      [  115.990426] [<c039fb4c>] (dev_attr_store) from [<c01b0a28>] (sysfs_kf_write+0x4c/0x50)
      [  115.998742] [<c01b0a28>] (sysfs_kf_write) from [<c01afe1c>] (kernfs_fop_write+0xbc/0x19c)
      [  116.007333] [<c01afe1c>] (kernfs_fop_write) from [<c0148cc4>] (vfs_write+0xb0/0x1a0)
      [  116.015461] [<c0148cc4>] (vfs_write) from [<c0148fbc>] (SyS_write+0x44/0x84)
      [  116.022881] [<c0148fbc>] (SyS_write) from [<c000e5c0>] (ret_fast_syscall+0x0/0x48)
      [  116.030833] ---[ end trace 3a0b636123acab82 ]---
      
      So, switch over to sleepable GPIO operations as there is no mandatory
      need for non-sleepable gpio operations in the fan driver.
      
      This allows the fan driver to be used with i2c based gpio expanders such
      as palmas_gpio.
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      52a95c11
    • B
      hwmon: (tmp401) Bail out from tmp401_probe() in case of write errors · 90652efe
      Bartosz Golaszewski 提交于
      The return value of i2c_smbus_read_byte_data() is checked in
      tmp401_init_client(), but only a warning is printed and the device is
      registered anyway. This leads to devices being registered even if they
      cannot be physically detected.
      
      Bail out from probe in case of write errors and notify the user.
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      90652efe
    • P
      hwmon: (tmp401) Add support for TI TMP435 · 06adbaec
      Patrick Titiano 提交于
      Signed-off-by: NPatrick Titiano <ptitiano@baylibre.com>
      [Bartosz Golaszewski: prepared for submission, code review fixes]
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      [Guenter Roeck: Merged two patches into one]
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      06adbaec
  5. 02 12月, 2014 2 次提交
  6. 01 12月, 2014 11 次提交
  7. 20 11月, 2014 2 次提交
    • E
      thermal: of: improve of-thermal sensor registration API · 2251aef6
      Eduardo Valentin 提交于
      Different drivers request API extensions in of-thermal. For this reason,
      additional callbacks are required to fit the new drivers needs.
      
      The current API implementation expects the registering sensor driver
      to provide a get_temp and get_trend callbacks as function parameters.
      As the amount of callbacks is growing, this patch changes the existing
      implementation to use a .ops field to hold all the of thermal callbacks
      to sensor drivers.
      
      This patch also changes the existing of-thermal users to fit the new
      API design. No functional change is introduced in this patch.
      
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: devicetree@vger.kernel.org
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Jean Delvare <jdelvare@suse.de>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: linux-tegra@vger.kernel.org
      Cc: lm-sensors@lm-sensors.org
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Tested-by: NMikko Perttunen <mikko.perttunen@kapsi.fi>
      Reviewed-by: NMikko Perttunen <mikko.perttunen@kapsi.fi>
      Reviewed-by: NAlexandre Courbot <acourbot@nvidia.com>
      Reviewed-by: NLukasz Majewski <l.majewski@samsung.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      2251aef6
    • A
      hwmon: (g762) fix call to devm_hwmon_device_register_with_groups() · 6b19b660
      Arnaud Ebalard 提交于
      g762_remove() needs to first call hwmon_device_unregister() and then
      g762_of_clock_disable(). For that reason, it is not possible to
      convert it to devm_hwmon_device_register_with_groups() and the
      the non device managed version must be used.
      
      This is correctly stated in commit message for 398e16db ("hwmon:
      (g762) Convert to hwmon_device_register_with_groups") but the
      associated changes do in fact introduce a call to the device managed
      version of the function.
      
      This patch fixes that typo by switching to the non devm_ version.
      
      Fixes: 398e16db ("hwmon: (g762) Convert to hwmon_device_register_with_groups")
      Cc: stable@vger.kernel.org (3.17+)
      Signed-off-by: NArnaud Ebalard <arno@natisbad.org>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      6b19b660
  8. 12 11月, 2014 3 次提交
  9. 20 10月, 2014 2 次提交
  10. 03 10月, 2014 1 次提交
  11. 24 9月, 2014 1 次提交
  12. 23 9月, 2014 8 次提交
  13. 17 9月, 2014 2 次提交
  14. 29 8月, 2014 1 次提交