clk: sunxi-ng: Implement reset control status readback
authorChen-Yu Tsai <wens@csie.org>
Tue, 26 Sep 2017 02:36:20 +0000 (10:36 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 26 Sep 2017 09:13:03 +0000 (11:13 +0200)
commit5da672cff03d3ffa36476e91943af50e3151db2a
tree97f07d2ec7afd42501a98446cba54ff1112ac5b1
parenta894990ac994a53bc5a0cc694eb12f3c064c18c5
clk: sunxi-ng: Implement reset control status readback

Until now we were not providing a way to read back the status of our
reset controls. Consumers had no real way to be certain whether a
peripheral was held in reset or not.

Implement the status callback to complete the API support.

Fixes: 1d80c14248d6 ("clk: sunxi-ng: Add common infrastructure")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu_reset.c