FROMLIST: clk: add flag for clocks that need to be enabled on rate changes

Some clocks need to be enabled to accept rate changes. This patch adds a
new flag CLK_SET_RATE_UNGATE that lets clk_change_rate enable the clock
before trying to change the rate and disable it again afterwards.
This of course doesn't effect clocks that are already running at that
point, as their refcount will only temporarily increase.

****CONFLICT******
struct clk_core *core ----> struct clk_core *clk

Change-Id: I9893dcc9c38d0d02a8a395537277fda470403f75
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>

Bug: None
Patchset: Rockchip clk Patch[1/3], happy work for some devices.

(am https://patchwork.kernel.org/patch/7053041/)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I9893dcc9c38d0d02a8a395537277fda470403f75
2 files changed