wil6210: fix device ready detection
authorVladimir Kondratiev <QCA_vkondrat@QCA.qualcomm.com>
Sun, 25 Oct 2015 13:59:23 +0000 (15:59 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 29 Oct 2015 11:06:47 +0000 (13:06 +0200)
commit817f18534412532198bf3da8dfd2663a1d75a7de
treec5494977758687413da556aae8aae53783cc6724
parente3d2ed9434331dedb9eeece586d38aec9e29f60b
wil6210: fix device ready detection

Adjust driver behavior during FW boot. Proper sequence of
events after reset and FW download, is as following:

- FW prepares mailbox structure and reports IRQ "FW_READY"
- driver caches mailbox registers, marks mailbox readiness
- FW sends WMI_FW_READY event, ignore it
- FW sends WMI_READY event with some data
- driver stores relevant data marks FW is operational

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/interrupt.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c