]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: rockchip: fixes the conversion table
authorCaesar Wang <wxt@rock-chips.com>
Thu, 5 Jan 2017 04:37:55 +0000 (12:37 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 Jan 2017 04:30:49 +0000 (20:30 -0800)
commit6c87eb21aa0b3b58001852601f130db1f8237de7
tree920593910bd3752772d17428e14a718f428b0866
parente3f8b1b5a490506433144e34c1df5b99c82be18f
thermal: rockchip: fixes the conversion table

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 3f5e6222647f07c5ac
("thermal: rockchip: optimize the conversion table")

Reported-by: ayaka <ayaka@soulik.info>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c