ath10k: fix device initialization routine
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 10 Feb 2014 16:14:22 +0000 (17:14 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Feb 2014 14:55:01 +0000 (16:55 +0200)
commitfc36e3ffcdd0ef214008d459bf8d8bff159ce16f
treedd2155c2e84bcef8e2313cce0e320482dcb0215d
parent36786024df993f0fb5e7d1b56058c4f48f24d5e8
ath10k: fix device initialization routine

Hardware CUS232 version 2 has some issues with cold
reset that lead to Data Bus Errors or system hangs
in some cases. It's safer to use warm reset when
possible as it shouldn't trigger the
aforementioned issues.

Prefer warm reset over cold reset. However since
warm reset doesn't work after FW crash make sure to
fallback to cold reset when booting up the HW.

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