]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
thermal: nct72: report correct initial temperature & fix shutdown during bootup
authorRajkumar Kasirajan <rkasirajan@nvidia.com>
Mon, 21 Dec 2015 07:03:20 +0000 (15:03 +0800)
committerSrikar Srimath Tirumala <srikars@nvidia.com>
Fri, 6 May 2016 22:03:28 +0000 (15:03 -0700)
commit38fc6cba8e99479f424bf4b17de13b335bb6440f
treeb2bc0471979cb3cf70a5b4ae3d1100a16765a91d
parent078b4b309ef7d2c181a6f1be285b2f7ad4894a4c
thermal: nct72: report correct initial temperature & fix shutdown during bootup

If NCT is in standby mode, need to initiate one-shot conversion
before reading temperature, otherwise while bootup NCT will report
wrong initial temperature and driver will set wrong temperature
alert limits based on that.

While nct driver probe, enable oneshot conversion after
setting shutdown limits for local and external sensors.

Bug 1723265
Bug 200161159

Change-Id: I9080579be749fb26f51d4d1c28911db4b6538a70
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/1018100
Reviewed-on: http://git-master/r/929897
(cherry picked from commit 4164770df219bcd37ffa68950882564181a78e8f)
(cherry picked from commit baaa7aad03a9a49fb86f5f58c783920b906b0ee2)
Reviewed-on: http://git-master/r/1019841
(cherry picked from commit 67f749548ff94f6b76c203fe42c280d69b959008)
Reviewed-on: http://git-master/r/1022471
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/misc/nct1008.c