• Caesar Wang's avatar
    thermal: rockchip: fixes the conversion table · db831886
    Caesar Wang authored
    As Ayaka reported the thermal was abormal on rk3288 at booting time.
    thermal thermal_zone1: critical temperature reached(125 C),shutting down
    thermal thermal_zone2: critical temperature reached(125 C),shutting down
    thermal thermal_zone1: critical temperature reached(125 C),shutting down
    thermal thermal_zone2: critical temperature reached(125 C),shutting down
    ...
    The root caused by reading the invald analogic value, the value is zero
    will convert the 125 degree to trigger the critical temperature.
    Fixes it with insteading of the incorrect reading now.
    
    Fixes commit cadf29dc
    ("thermal: rockchip: optimize the conversion table")
    Reported-by: default avatarayaka <ayaka@soulik.info>
    Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    db831886
rockchip_thermal.c 33.9 KB