]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit90c29ed7627b6b4aeb603ee197650173c8434512
treed4c857ff348af5d0e63760cd334eeceed65897ac
parentfa65f8045137d061134c15233d35a089cc85b87e
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: ea7a1f275cf0 ("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