ath10k: make warm reset a bit safer and faster
authorMichal Kazior <michal.kazior@tieto.com>
Tue, 28 Oct 2014 09:32:06 +0000 (10:32 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 31 Oct 2014 00:26:59 +0000 (02:26 +0200)
commit61c1648bd7478a9c73d37dedc91b37cccde69176
treeb9b9a00f89d9ddeefa64796be2651da571298926
parent099ac7ce2e23cc19382afbd3c192f2c6925851b9
ath10k: make warm reset a bit safer and faster

One of the problems with warm reset I've found is
that it must be guaranteed that copy engine
registers are not being accessed while being
reset. Otherwise in worst case scenario the host
may lock up.

Instead of using sleeps and hoping the device is
operational in some arbitrary timeframes use
firmware indication register.

As a side effect this makes driver
boot/stop/recovery faster.

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