Comment 4 for bug 2061940

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

6.6.x has this in addition

commit 3a3bbc6911f57e1c3b4eabf1d098cde7bf7baeb0
Author: Rafael J. Wysocki <email address hidden>
Date: Tue Sep 19 20:59:53 2023 +0200

    thermal: trip: Drop redundant trips check from for_each_thermal_trip()

    [ Upstream commit a15ffa783ea4210877886c59566a0d20f6b2bc09 ]

    It is invalid to call for_each_thermal_trip() on an unregistered thermal
    zone anyway, and as per thermal_zone_device_register_with_trips(), the
    trips[] table must be present if num_trips is greater than zero for the
    given thermal zone.

    Hence, the trips check in for_each_thermal_trip() is redundant and so it
    can be dropped.

    Signed-off-by: Rafael J. Wysocki <email address hidden>
    Acked-by: Daniel Lezcano <email address hidden>
    Stable-dep-of: e95fa7404716 ("thermal: gov_power_allocator: avoid inability to reset a cdev")
    Signed-off-by: Sasha Levin <email address hidden>

FYI, 6.1 didn't backport any of these, even though e95fa7404716 says "5.13+"