]> git.baikalelectronics.ru Git - kernel.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)
commite2d1c6dbac2db24d22cb8cc9b6dc97e23e9ba6a8
treee68b8ce17b41281dd216e51e4ec14062237ad681
parent02cf85362ee7fcf384ec3886c1f164cda3ad80c3
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: 69d47e1edbcf ("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