]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: wcnss_ctrl: Fix increment in NV upload
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 28 Feb 2018 00:45:25 +0000 (16:45 -0800)
committerAndy Gross <andy.gross@linaro.org>
Fri, 9 Mar 2018 00:40:35 +0000 (18:40 -0600)
commit595644ccdc0efb128458f91878f099719786370a
treed4c857ff348af5d0e63760cd334eeceed65897ac
parent4a936c98b9127782f556802ab98e38b90eea6c3e
soc: qcom: wcnss_ctrl: Fix increment in NV upload

hdr.len includes both the size of the header and the fragment, so using
this when stepping through the firmware causes us to skip 16 bytes every
chunk of 3072 bytes; causing only the first fragment to actually be
valid data.

Instead use fragment size steps through the firmware blob.

Fixes: 7da17b3b79b1 ("soc: qcom: Introduce WCNSS_CTRL SMD client")
Reported-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/wcnss_ctrl.c