From: Maxime Ripard Date: Mon, 14 Jul 2014 11:53:27 +0000 (+0200) Subject: clk: Add a function to retrieve phase X-Git-Tag: fixes-against-v3.18-rc2~68^2~11^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9824cf73c3a5e677bee6fcba43c4807e01ff1b4a;p=pandora-kernel.git clk: Add a function to retrieve phase The current phase API doesn't look into the actual hardware to get the phase value, but will rather get it from a variable only set by the set_phase function. This will cause issue when the client driver will never call the set_phase function, where we can end up having a reported phase that will not match what the hardware has been programmed to by the bootloader or what phase is programmed out of reset. Add a new get_phase function for the drivers to implement so that we can get this value. Signed-off-by: Maxime Ripard Reviewed-by: Heiko Stuebner Acked-by: Hans de Goede --- Reading git-diff-tree failed