]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: Handle "invalid" BDFs for msm8998 devices
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Wed, 13 Nov 2019 15:46:46 +0000 (07:46 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Nov 2019 12:04:28 +0000 (14:04 +0200)
commit9d307158b4628881de29139ca9f3342b2f3db90c
tree47f6aeda8d4573067646afa3762aabc11a3d51a1
parente2d1c6dbac2db24d22cb8cc9b6dc97e23e9ba6a8
ath10k: Handle "invalid" BDFs for msm8998 devices

When the BDF download QMI message has the end field set to 1, it signals
the end of the transfer, and triggers the firmware to do a CRC check.  The
BDFs for msm8998 devices fail this check, yet the firmware is happy to
still use the BDF.  It appears that this error is not caught by the
downstream drive by concidence, therefore there are production devices
in the field where this issue needs to be handled otherwise we cannot
support wifi on them.  So, attempt to detect this scenario as best we can
and treat it as non-fatal.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/qmi.c