diff options
author | Andrey Smirnov <[email protected]> | 2019-12-10 08:41:50 -0800 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2020-01-27 10:24:32 +0100 |
commit | 45038e03d633b0d49e4211e6dc2b5774ca1672f4 (patch) | |
tree | 03e4fc7bb1e789a5508b9c866b931b0811711cc9 /net/lapb/lapb_iface.c | |
parent | 4316237bd62728a33e7c069ffb3350399ecdab37 (diff) |
thermal: qoriq: Enable all sensors before registering them
Tmu_get_temp will get called as a part of sensor registration via
devm_thermal_zone_of_sensor_register(). To prevent it from retruning
bogus data we need to enable sensor monitoring before that. Looking at
the datasheet (i.MX8MQ RM) there doesn't seem to be any harm in
enabling them all, so, for the sake of simplicity, change the code to
do just that.
Signed-off-by: Andrey Smirnov <[email protected]>
Tested-by: Lucas Stach <[email protected]>
Cc: Chris Healy <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Eduardo Valentin <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Angus Ainslie (Purism) <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions