UPSTREAM: ath10k: snoc: fix unbalanced clock error handling
Similar to regulator error handling, we should only start tearing down the 'i - 1' clock when clock 'i' fails to enable. Otherwise, we might end up with an unbalanced clock, where we never successfully enabled the clock, but we try to disable it anyway. BUG=b:137525452 TEST=None Fixes: a6a793f9 ("ath10k: vote for hardware resources for WCN3990") Signed-off-by:Brian Norris <briannorris@chromium.org> Reviewed-by:
Douglas Anderson <dianders@chromium.org> Signed-off-by:
Kalle Valo <kvalo@codeaurora.org> Signed-off-by:
Govind Singh <govinds@codeaurora.org> (Cherry picked from commit 82e60d92) (Source: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ) Change-Id: Ifc8a0c9894a34bbadf4a9e486c405508311bc88a Signed-off-by:
Vamsi Singamsetty <vamssi@codeaurora.org>
Loading
Please sign in to comment