qtnfmac: wait for FW load work to finish at PCIe remove
authorIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Mon, 24 Sep 2018 22:15:13 +0000 (15:15 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 1 Oct 2018 15:40:30 +0000 (18:40 +0300)
commit86ca238cf1e99794be77d299639d6e2a1dfd67a6
treec78b4c37a56a50e38a55eccdefd6925cbdc06aaf
parentaddc7540708f52959c99ed3b9758a09070c102dc
qtnfmac: wait for FW load work to finish at PCIe remove

Waiting for "completion" to be set in FW load thread can not be used
in case PCIe remove is called before FW load work was scheduled.
Just wait for work completion instead to avoid problems.

Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/bus.h
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c