]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: 8822c: disable rx clock gating before counter reset
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Fri, 14 Jun 2019 07:24:10 +0000 (15:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 05:08:57 +0000 (08:08 +0300)
commit360caeedc8291b726fd5d3e9012c342a459e5d63
tree5a902cffe2feb946cb0a6a800400c8ed748ca137
parent57ce3bf348e2a3ef6e652f6169186e05710c2698
rtw88: 8822c: disable rx clock gating before counter reset

Driver Could fail to reset counter if rx clock gating is not disabled.
So we need to disable rx clock gating before resetting counters.
Otherwise counters may increase unexpected.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.h