12 Jul, 2013

1 commit

  • Pull thermal management updates from Zhang Rui:
    "There are not too many changes this time, except two new platform
    thermal drivers, ti-soc-thermal driver and x86_pkg_temp_thermal
    driver, and a couple of small fixes.

    Highlights:

    - move the ti-soc-thermal driver out of the staging tree to the
    thermal tree.

    - introduce the x86_pkg_temp_thermal driver. This driver registers
    CPU digital temperature package level sensor as a thermal zone.

    - small fixes/cleanups including removing redundant use of
    platform_set_drvdata() and of_match_ptr for all platform thermal
    drivers"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (34 commits)
    thermal: cpu_cooling: fix stub function
    thermal: ti-soc-thermal: use standard GPIO DT bindings
    thermal: MAINTAINERS: Add git tree path for SoC specific updates
    thermal: fix x86_pkg_temp_thermal.c build and Kconfig
    Thermal: Documentation for x86 package temperature thermal driver
    Thermal: CPU Package temperature thermal
    thermal: consider emul_temperature while computing trend
    thermal: ti-soc-thermal: add DT example for DRA752 chip
    thermal: ti-soc-thermal: add dra752 chip to device table
    thermal: ti-soc-thermal: add thermal data for DRA752 chips
    thermal: ti-soc-thermal: remove usage of IS_ERR_OR_NULL
    thermal: ti-soc-thermal: freeze FSM while computing trend
    thermal: ti-soc-thermal: remove external heat while extrapolating hotspot
    thermal: ti-soc-thermal: update DT reference for OMAP5430
    x86, mcheck, therm_throt: Process package thresholds
    thermal: cpu_cooling: fix 'descend' check in get_property()
    Thermal: spear: Remove redundant use of of_match_ptr
    Thermal: kirkwood: Remove redundant use of of_match_ptr
    Thermal: dove: Remove redundant use of of_match_ptr
    Thermal: armada: Remove redundant use of of_match_ptr
    ...

    Linus Torvalds
     

08 Jul, 2013

1 commit

  • This change updates the ti-soc-thermal driver to use
    standard GPIO DT bindings to read the GPIO number associated
    to thermal shutdown IRQ, in case the device features it.

    Previously, the code was using a specific DT bindings.
    As now OMAP supports the standard way to model GPIOs,
    there is no point in having a ti specific binding.

    Cc: Zhang Rui
    Cc: Grant Likely
    Cc: Rob Herring
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree-discuss@lists.ozlabs.org
    Signed-off-by: Eduardo Valentin

    Eduardo Valentin
     

19 Jun, 2013

1 commit

  • EXYNOS4212 and EXYNOS4412 have the same thermal block, so there is no
    reason to include support only for EXYNOS4412 in this driver.

    Cc: linux-pm@vger.kernel.org
    Cc: Zhang Rui
    Cc: Eduardo Valentin
    Signed-off-by: Tomasz Figa
    Signed-off-by: Kyungmin Park
    Signed-off-by: Kukjin Kim

    Tomasz Figa
     

18 Jun, 2013

4 commits


13 Jun, 2013

7 commits

  • Zhang Rui
     
  • In case emulated temperature is in use, using the trend
    provided by driver layer can lead to bogus situation.
    In this case, debugger user would set a temperature value,
    but the trend would be from driver computation.

    To avoid this situation, this patch changes the get_tz_trend()
    to consider the emulated temperature whenever that is in use.

    Cc: Zhang Rui
    Cc: Amit Daniel Kachhap
    Cc: Durgadoss R
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Eduardo Valentin
     
  • Add support to TI dra752 chips by adapting the driver
    device table.

    Cc: Zhang Rui
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Eduardo Valentin
     
  • This patch adds the thermal data for TI DRA752 chips.
    In this change it includes (autogen):
    . Register offset definitions
    . Bitfields and masks for all registers
    . Conversion table

    Also, the thermal limits, thresholds and extrapolation
    rules are included. The extrapolation rule is simply
    add +2C as margin.

    All 5 sensors, MPU, GPU, CORE, DSPEVE and IVA, are defined
    and exposed. Only MPU has cooling device.

    Cc: Zhang Rui
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Eduardo Valentin
     
  • This patch changes the driver to avoid the usage of IS_ERR_OR_NULL()
    macro. This macro can lead to dangerous results, like returning
    success (0) during a failure scenario (NULL pointer handling).

    For this reason this patch is changing the driver after
    revisiting the code. These are the cases:
    i. For cases in which IS_ERR_OR_NULL() is used for checking
    return values of functions that returns either PTR_ERR()
    or a valid pointer, it has been translated to IS_ERR() check only.
    ii. For cases that a NULL check is still needed, it has been
    translated to if (!ptr || IS_ERR(ptr)).

    Cc: Zhang Rui
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Eduardo Valentin
     
  • In order to read the history buffer, it is required to
    freeze BG FSM. This patch adds the missing piece of code
    to freeze the FSM and also a contention area to avoid
    other parts of the code to access the DTEMPs.

    Cc: Zhang Rui
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Eduardo Valentin
     
  • For boards that provide a PCB sensor close to SoC junction
    temperature, it is possible to remove the cumulative heat
    reported by the SoC temperature sensor.

    This patch changes the extrapolation computation to consider
    an external sensor in the extrapolation equations.

    Cc: Zhang Rui
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Eduardo Valentin
    Signed-off-by: Zhang Rui

    Eduardo Valentin
     

28 May, 2013

11 commits


20 May, 2013

2 commits


18 May, 2013

1 commit


06 May, 2013

6 commits


27 Apr, 2013

6 commits