1. 21 5月, 2018 1 次提交
    • T
      hwmon: (ltc2990) support all measurement modes · 5d9ca430
      Tom Levens 提交于
      Updated version of the ltc2990 driver which supports all measurement
      modes (current, voltage, temperature) available in the chip.
      
      If devicetree is used, the mode must be specified with the property
      "lltc,meas-mode". The format and possible values of the property are
      described in the binding.
      
      If devicetree is not used, the mode of the chip will not be configured.
      Unless the chip is configured by another source, only the internal
      temperature and supply voltage will be measured.
      Signed-off-by: NTom Levens <tom.levens@cern.ch>
      Tested-By: mike.looijmans@topic.nl
      [groeck: Fixed compiler warning]
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      5d9ca430
  2. 14 5月, 2018 1 次提交
    • G
      hwmon: (k10temp) Use API function to access System Management Network · 3b031622
      Guenter Roeck 提交于
      The SMN (System Management Network) on Family 17h AMD CPUs is also accessed
      from other drivers, specifically EDAC. Accessing it directly is racy.
      On top of that, accessing the SMN through root bridge 00:00 is wrong on
      multi-die CPUs and may result in reading the temperature from the wrong
      die. Use available API functions to fix the problem.
      
      For this to work, add dependency on AMD_NB. Also change the Raven Ridge
      PCI device ID to point to Data Fabric Function 3, since this ID is used
      by the API functions to find the CPU node.
      
      Cc: stable@vger.kernel.org # v4.16+
      Tested-by: NGabriel Craciunescu <nix.or.die@gmail.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      3b031622
  3. 11 3月, 2018 1 次提交
  4. 01 3月, 2018 1 次提交
  5. 03 1月, 2018 2 次提交
  6. 30 10月, 2017 2 次提交
  7. 01 9月, 2017 1 次提交
  8. 15 8月, 2017 1 次提交
    • A
      hwmon: (aspeed-pwm) add THERMAL dependency · d5553c26
      Arnd Bergmann 提交于
      With CONFIG_THERMAL=m, a built-in aspeed pwm tacho driver causes
      a link error:
      
      drivers/hwmon/aspeed-pwm-tacho.o: In function `aspeed_pwm_tacho_probe':
      aspeed-pwm-tacho.c:(.text+0x7f0): undefined reference to `thermal_of_cooling_device_register'
      
      This adds a dependency similar to what other hwmon drivers use,
      ensuring that the aspeed driver cannot be built-in in this
      case but has to be a module. With THERMAL=n, we still allow building it.
      
      Fixes: 2d7a548a ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      d5553c26
  9. 31 5月, 2017 1 次提交
  10. 01 5月, 2017 1 次提交
  11. 11 4月, 2017 1 次提交
  12. 03 2月, 2017 1 次提交
  13. 10 12月, 2016 2 次提交
  14. 03 12月, 2016 1 次提交
  15. 13 9月, 2016 1 次提交
  16. 09 9月, 2016 3 次提交
  17. 20 7月, 2016 1 次提交
  18. 13 7月, 2016 1 次提交
    • G
      hwmon: (tmp102) Convert to use regmap, and drop local cache · 28a340db
      Guenter Roeck 提交于
      By converting the driver to regmap, we can use regmap to cache non-volatile
      registers. Stop caching the temperature register; while potentially reading
      it more often can result in reading it more often than necessary, this is
      offset by the gain due to not re-reading the limit registers.
      
      A positive side effect of this change is that limit registers can now be
      read and updated before the first temperature conversion is complete.
      Acked-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      28a340db
  19. 09 7月, 2016 1 次提交
    • G
      hwmon: (lm75) Convert to use regmap · e65365fe
      Guenter Roeck 提交于
      Convert to use regmap. Leave caching to regmap and drop the register
      update function. While this can result in additional read operations
      if the temperature register is read continuously, it avoids re-reading
      the limit registers and thus overall reduces complexity.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      e65365fe
  20. 28 6月, 2016 4 次提交
  21. 19 4月, 2016 3 次提交
  22. 09 3月, 2016 1 次提交
  23. 05 3月, 2016 2 次提交
  24. 19 12月, 2015 2 次提交
  25. 17 11月, 2015 1 次提交
    • A
      hwmon: (scpi) add thermal-of dependency · d42d5b6f
      Arnd Bergmann 提交于
      The newly added scpi thermal support is broken when the scpi driver
      is built-in but the thermal driver is a loadable module:
      
      drivers/built-in.o: In function `scpi_hwmon_probe':
      (.text+0x444d70): undefined reference to `thermal_zone_of_sensor_unregister'
      (.text+0x444d94): undefined reference to `thermal_zone_of_sensor_register'
      drivers/built-in.o: In function `scpi_hwmon_remove':
      (text+0x444e6c): undefined reference to `thermal_zone_of_sensor_unregister'
      
      This uses the same Kconfig trick that we have in a couple of other
      drivers already to ensure we can only select the driver in valid
      configurations when either THERMAL_OF is disabled, or when with a
      dependency on CONFIG_THERMAL that can force SCPI to be a loadable
      module in the case I was hitting.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 68acc77a ("hwmon: Support thermal zones registration for SCP temperature sensors")
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      d42d5b6f
  26. 16 11月, 2015 1 次提交
  27. 14 10月, 2015 1 次提交
  28. 09 10月, 2015 1 次提交