Loading
msm: msm_bus: Always enable/disable bus clock during qos programming
Currently the driver queries the rate of the bus clock using clk_get_rate()
and calls clk_set_rate()/clk_prepare_enable() only if the rate returned
is 0. However the clk_get_rate() API will return a non-zero value even if
the clock being queried has been disabled.
To adjust for this change the call flow to call clk_set_rate() only if
the rate returned is 0 from clk_get_rate(), but make the call to enable
and disable the clocks unconditionally.
Change-Id: I50c71c5e27dfbaa0c8cef4267d70a9565ef635b3
Signed-off-by:
Girish Mahadevan <girishm@codeaurora.org>