• Ni Wade's avatar
    Thermal: Allow first update of cooling device state · 5ca0cce5
    Ni Wade authored
    In initialization, if the cooling device is initialized at
    max cooling state, and the thermal zone temperature is below
    the first trip point, then the cooling state can't be updated
    to the right state, untill the first trip point be triggered.
    
    To fix this issue, allow first update of cooling device state
    during registration, initialized "updated" device field as
    "false" (instead of "true").
    Signed-off-by: default avatarWei Ni <wni@nvidia.com>
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    5ca0cce5
thermal_core.c 46.8 KB