OSDN Git Service

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)
commit279dc955745a6800911404fe375686626aa7fed3
tree63376a1775af5d28a47514278e320cdfa0f2d53d
parentc1181f42ff1e7e0158184baee171dd54e67c353a
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