]> 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)
commitda365772c4b66f5837222220349e32c73e62648c
tree63376a1775af5d28a47514278e320cdfa0f2d53d
parent22bca7a3e52e9f5e597df87a61641a7f60f6934e
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