PM / devfreq: tegra30: Improve initial hardware resetting
authorDmitry Osipenko <digetx@gmail.com>
Sun, 27 Sep 2020 20:51:39 +0000 (23:51 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Sep 2020 08:50:10 +0000 (17:50 +0900)
commitd353d1202b89ab039acd079cd97f7646058ebe11
tree2a3383dc7450a11a23ad64bc51b392cf48f3f1af
parent02bdbf7d09c059b16047e3d4a05e6d584dd993b6
PM / devfreq: tegra30: Improve initial hardware resetting

It's safe to enable the ACTMON clock at any time during driver probing,
even if we don't know the state of hardware, because it's used only for
collecting and processing stats, and interrupt is kept disabled. This
allows us to slightly improve code which performs initial hardware
resetting by making use of a single reset_control_reset() instead of
assert/deassert pair. Secondly, a potential error of the reset-control
API is handled nicely now.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/tegra30-devfreq.c