1. 12 Oct, 2023 1 commit
    • Rafael J. Wysocki's avatar
      Merge branch 'thermal-misc' · d3bff627
      Rafael J. Wysocki authored
      Merge thermal control changes related to switching over platform drivers
      to using void remove callbacks.
      
      * thermal-misc: (31 commits)
        thermal: amlogic: Convert to platform remove callback returning void
        thermal: uniphier: Convert to platform remove callback returning void
        thermal: ti-bandgap: Convert to platform remove callback returning void
        thermal: tegra-bpmp: Convert to platform remove callback returning void
        thermal: soctherm: Convert to platform remove callback returning void
        thermal: stm: Convert to platform remove callback returning void
        thermal: sprd: Convert to platform remove callback returning void
        thermal: spear: Convert to platform remove callback returning void
        thermal: exynos_tmu: Convert to platform remove callback returning void
        thermal: rzg2l: Convert to platform remove callback returning void
        thermal: rockchip: Convert to platform remove callback returning void
        thermal: rcar: Convert to platform remove callback returning void
        thermal: rcar_gen3: Convert to platform remove callback returning void
        thermal: tsens: Convert to platform remove callback returning void
        thermal: lvts: Convert to platform remove callback returning void
        thermal: kirkwood: Convert to platform remove callback returning void
        thermal: k3_j72xx_bandgap: Convert to platform remove callback returning void
        thermal: k3_bandgap: Convert to platform remove callback returning void
        thermal: int3406: Convert to platform remove callback returning void
        thermal: int3403: Convert to platform remove callback returning void
        ...
      d3bff627
  2. 11 Oct, 2023 3 commits
  3. 05 Oct, 2023 1 commit
  4. 02 Oct, 2023 11 commits
  5. 29 Sep, 2023 20 commits
  6. 28 Sep, 2023 2 commits
    • Rafael J. Wysocki's avatar
      thermal: core: Allow trip pointers to be used for cooling device binding · d069ed6b
      Rafael J. Wysocki authored
      Add new helper functions, thermal_bind_cdev_to_trip() and
      thermal_unbind_cdev_from_trip(), to allow a trip pointer to be used for
      binding a cooling device to a trip point and unbinding it, respectively,
      and redefine the existing helpers, thermal_zone_bind_cooling_device()
      and thermal_zone_unbind_cooling_device(), as wrappers around the new
      ones, respectively.
      
      No intentional functional impact.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      d069ed6b
    • Rafael J. Wysocki's avatar
      thermal: core: Store trip pointer in struct thermal_instance · 2c7b4bfa
      Rafael J. Wysocki authored
      Replace the integer trip number stored in struct thermal_instance with
      a pointer to the relevant trip and adjust the code using the structure
      in question accordingly.
      
      The main reason for making this change is to allow the trip point to
      cooling device binding code more straightforward, as illustrated by
      subsequent modifications of the ACPI thermal driver, but it also helps
      to clarify the overall design and allows the governor code overhead to
      be reduced (through subsequent modifications).
      
      The only case in which it adds complexity is trip_point_show() that
      needs to walk the trips[] table to find the index of the given trip
      point, but this is not a critical path and the interface that
      trip_point_show() belongs to is problematic anyway (for instance, it
      doesn't cover the case when the same cooling devices is associated
      with multiple trip points).
      
      This is a preliminary change and the affected code will be refined by
      a series of subsequent modifications of thermal governors, the core and
      the ACPI thermal driver.
      
      The general functionality is not expected to be affected by this change.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      2c7b4bfa
  7. 26 Sep, 2023 1 commit
  8. 25 Sep, 2023 1 commit
    • Rafael J. Wysocki's avatar
      thermal: core: Drop trips_disabled bitmask · 95021088
      Rafael J. Wysocki authored
      After recent changes, thermal_zone_get_trip() cannot fail, as invoked
      from thermal_zone_device_register_with_trips(), so the only role of
      the trips_disabled bitmask is struct thermal_zone_device is to make
      handle_thermal_trip() skip trip points whose temperature was initially
      zero.  However, since the unit of temperature in the thermal core is
      millicelsius, zero may very well be a valid temperature value at least
      in some usage scenarios and the trip temperature may as well change
      later.  Thus there is no reason to permanently disable trip points
      with initial temperature equal to zero.
      
      Accordingly, drop the trips_disabled bitmask along with the code
      related to it.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Tested-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      95021088