]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: soctherm: check and write registers
authorDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 20 Mar 2014 01:21:15 +0000 (18:21 -0700)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Wed, 26 Mar 2014 17:11:07 +0000 (10:11 -0700)
commit96b4de7534b2f006b8deb8835598a61c606d1c66
treedce2b2c798a9222718113abd5d66d9fa9bbfeeef
parent1ac49c0e78dc55ccae3d78c22f07dd99c405ebd1
arm: tegra: soctherm: check and write registers

There's an intentional side-effect of writing trip temperature
thresholds in HW; It resets the up/down state machine that track
hysteresis and can cause unnecessary thermal events (interrupts).

Avoid unnecessary events by checking if the trip config register is
being configured to the same settings.

Although it doesn't fix the below bugs, it reduces unnecessary extra
work that makes these problems worse.

Bug 1463497
Bug 1478989

Change-Id: Idf07b49ca8d7da892b52ed796044c2f433e2a192
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/384656
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
GVS: Gerrit_Virtual_Submit
arch/arm/mach-tegra/tegra11_soctherm.c