ath10k: reset chip before reading chip_id in probe
authorMichal Kazior <michal.kazior@tieto.com>
Sat, 24 Jan 2015 10:14:48 +0000 (12:14 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Jan 2015 13:59:27 +0000 (15:59 +0200)
commit1a7fecb766c83dace747f42b25bbb544b00a0163
tree777cc850b3cb9b4917fd5fb4e832eff5efa260a0
parentc545070e404bfb20e5b72ae725332fe512e5d22c
ath10k: reset chip before reading chip_id in probe

There are some very rare cases with some hardware
configuration that the device doesn't init quickly
enough in which case reading chip_id yielded 0.
This caused driver to subsequently fail to setup
the device.

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