OSDN Git Service

ath10k: prevent fw reg dump spam
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 12 Jan 2015 14:29:37 +0000 (15:29 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 15 Jan 2015 10:34:54 +0000 (12:34 +0200)
commita2fa88003213ea2167545b5306b4d54437b857b7
treea318f3d0a8cf734ad9c5d0670b62e87b7135bf53
parent8bdadac13f65c14d7b6df711793eb31ba9db296e
ath10k: prevent fw reg dump spam

Originally the explicit fw register dump was added
to wait_for_target_init because interrupts are
masked early during power_up.

Due to some changes in power_up/reset sequences
sometimes when fw crashed ath10k would print the
dump more than once via hif_stop -> warm_reset ->
wait_for_target_init, possibly with different
values each.

Prevent this by doing the explicit fw register
dump only during power_up instead of
wait_for_target_init.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c