]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: snoc: fix unbalanced clock error handling
authorBrian Norris <briannorris@chromium.org>
Mon, 5 Nov 2018 12:35:22 +0000 (14:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Nov 2018 16:17:16 +0000 (18:17 +0200)
commitab9f5c21109d047ef88817e9131168eb7206dabc
tree81d97be3a7589ccd2ff5752058f97bd6a20017c6
parent707816b5e5b6c3d095d0345cb357e3ca30fffea6
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.

Fixes: 2e0319f5f11a ("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>
drivers/net/wireless/ath/ath10k/snoc.c