]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: assign proper packet context base
authorAlex Elder <elder@linaro.org>
Wed, 28 Oct 2020 19:41:44 +0000 (14:41 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Oct 2020 00:19:58 +0000 (17:19 -0700)
commitcd6f0a5ca18a26b1ada6bc22870b5cf7afba9349
tree63376a1775af5d28a47514278e320cdfa0f2d53d
parentae6b61deccb5fbb827ee44c695384dd633cb8a3a
net: ipa: assign proper packet context base

At the end of ipa_mem_setup() we write the local packet processing
context base register to tell it where the processing context memory
is.  But we are writing the wrong value.

The value written turns out to be the offset of the modem header
memory region (assigned earlier in the function).  Fix this bug.

Tested-by: Sujit Kautkar <sujitka@chromium.org>
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_mem.c