]> asedeno.scripts.mit.edu Git - linux.git/commit
ath10k: Fix qmi init error handling
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Wed, 13 Nov 2019 15:40:16 +0000 (07:40 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Nov 2019 12:02:17 +0000 (14:02 +0200)
commitf8a595a87e93a33a10879f4b856be818d2f53c84
treee68b8ce17b41281dd216e51e4ec14062237ad681
parent23b5156a856b6342c8a1ef7045d387c00cdb17c5
ath10k: Fix qmi init error handling

When ath10k_qmi_init() fails, the error handling does not free the irq
resources, which causes an issue if we EPROBE_DEFER as we'll attempt to
(re-)register irqs which are already registered.

Fix this by doing a power off since we just powered on the hardware, and
freeing the irqs as error handling.

Fixes: ba94c753ccb4 ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/snoc.c