1. 08 8月, 2017 1 次提交
  2. 05 5月, 2017 1 次提交
    • K
      thermal: core: Add a back up thermal shutdown mechanism · ef1d87e0
      Keerthy 提交于
      orderly_poweroff is triggered when a graceful shutdown
      of system is desired. This may be used in many critical states of the
      kernel such as when subsystems detects conditions such as critical
      temperature conditions. However, in certain conditions in system
      boot up sequences like those in the middle of driver probes being
      initiated, userspace will be unable to power off the system in a clean
      manner and leaves the system in a critical state. In cases like these,
      the /sbin/poweroff will return success (having forked off to attempt
      powering off the system. However, the system overall will fail to
      completely poweroff (since other modules will be probed) and the system
      is still functional with no userspace (since that would have shut itself
      off).
      
      However, there is no clean way of detecting such failure of userspace
      powering off the system. In such scenarios, it is necessary for a backup
      workqueue to be able to force a shutdown of the system when orderly
      shutdown is not successful after a configurable time period.
      Reported-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NKeerthy <j-keerthy@ti.com>
      Acked-by: NEduardo Valentin <edubezval@gmail.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      ef1d87e0
  3. 27 4月, 2017 1 次提交
  4. 23 4月, 2017 1 次提交
  5. 07 4月, 2017 2 次提交
    • S
      thermal: da9062/61: Thermal junction temperature monitoring driver · 608567aa
      Steve Twiss 提交于
      Add junction temperature monitoring supervisor device driver, compatible
      with the DA9062 and DA9061 PMICs. A MODULE_DEVICE_TABLE() macro is added.
      
      If the PMIC's internal junction temperature rises above T_WARN (125 degC)
      an interrupt is issued. This T_WARN level is defined as the
      THERMAL_TRIP_HOT trip-wire inside the device driver.
      
      The thermal triggering mechanism is interrupt based and happens when the
      temperature rises above a given threshold level. The component cannot
      return an exact temperature, it only has knowledge if the temperature is
      above or below a given threshold value. A status bit must be polled to
      detect when the temperature falls below that threshold level again. A
      kernel work queue is configured to repeatedly poll and detect when the
      temperature falls below this trip-wire, between 1 and 10 second intervals
      (defaulting at 3 seconds).
      
      This scheme is provided as an example. It would be expected that any
      final implementation will also include a notify() function and any of these
      settings could be altered to match the application where appropriate.
      
      When over-temperature is reached, the interrupt from the DA9061/2 will be
      repeatedly triggered. The IRQ is therefore disabled when the first
      over-temperature event happens and the status bit is polled using a
      work-queue until it becomes false.
      
      This strategy is designed to allow the periodic transmission of uevents
      (HOT trip point) as the first level of temperature supervision method. It
      is intended for non-invasive temperature control, where the necessary
      measures for cooling the system down are left to the host software. Once
      the temperature falls again, the IRQ is re-enabled so a new critical
      over-temperature event can be detected.
      Reviewed-by: NLukasz Luba <lukasz.luba@arm.com>
      Signed-off-by: NSteve Twiss <stwiss.opensource@diasemi.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      608567aa
    • R
      thermal: broadcom: add Northstar thermal driver · a94cb7ee
      Rafał Miłecki 提交于
      Northstar is a SoC family commonly used in home routers. This commit
      adds a driver for checking CPU temperature. As Northstar Plus seems to
      also have this IP block this new symbol gets ARCH_BCM_IPROC dependency.
      Signed-off-by: NRafał Miłecki <rafal@milecki.pl>
      Signed-off-by: NJon Mason <jon.mason@broadcom.com>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      a94cb7ee
  6. 02 4月, 2017 1 次提交
  7. 16 3月, 2017 1 次提交
  8. 19 2月, 2017 1 次提交
  9. 20 1月, 2017 1 次提交
  10. 23 11月, 2016 1 次提交
  11. 27 9月, 2016 4 次提交
  12. 06 9月, 2016 1 次提交
  13. 17 5月, 2016 3 次提交
  14. 11 5月, 2016 1 次提交
  15. 21 4月, 2016 2 次提交
  16. 09 3月, 2016 4 次提交
  17. 18 2月, 2016 1 次提交
  18. 10 2月, 2016 2 次提交
    • A
      thermal: allow u8500-thermal driver to be a module · 26716ce1
      Arnd Bergmann 提交于
      When the thermal subsystem is a loadable module, the u8500 driver
      fails to build:
      
      drivers/thermal/built-in.o: In function `db8500_thermal_probe':
      db8500_thermal.c:(.text+0x96c): undefined reference to `thermal_zone_device_register'
      drivers/thermal/built-in.o: In function `db8500_thermal_work':
      db8500_thermal.c:(.text+0xab4): undefined reference to `thermal_zone_device_update'
      
      This changes the symbol to a tristate, so Kconfig can track the
      dependency correctly.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      26716ce1
    • A
      thermal: allow spear-thermal driver to be a module · 4d2f1794
      Arnd Bergmann 提交于
      When the thermal subsystem is a loadable module, the spear driver
      fails to build:
      
      drivers/thermal/built-in.o: In function `spear_thermal_exit':
      spear_thermal.c:(.text+0xf8): undefined reference to `thermal_zone_device_unregister'
      drivers/thermal/built-in.o: In function `spear_thermal_probe':
      spear_thermal.c:(.text+0x230): undefined reference to `thermal_zone_device_register'
      
      This changes the symbol to a tristate, so Kconfig can track the
      dependency correctly.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      4d2f1794
  19. 24 11月, 2015 1 次提交
    • A
      Revert "thermal: qcom_spmi: allow compile test" · e4217468
      Arnd Bergmann 提交于
      This just caused build errors:
      
      warning: (QCOM_SPMI_TEMP_ALARM) selects REGMAP_SPMI which has unmet direct dependencies (SPMI)
      drivers/built-in.o: In function `regmap_spmi_ext_gather_write':
      :(.text+0x609b0): undefined reference to `spmi_ext_register_write'
      :(.text+0x609f0): undefined reference to `spmi_ext_register_writel'
      
      While it's generally a good idea to allow compile testing, in this
      case, it just doesn't work, so reverting the patch that
      introduced the compile-test variant seems the most appropriate
      solution.
      
      Note that SPMI also has a 'depends on ARCH_QCOM || COMPILE_TEST'
      statement, so we should be able to enable SPMI on all architectures
      for compile testing already.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: cb7fb4d3 ("thermal: qcom_spmi: allow compile test")
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      e4217468
  20. 31 10月, 2015 1 次提交
  21. 10 10月, 2015 1 次提交
  22. 14 9月, 2015 8 次提交