]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: update GSI ring size registers
authorAlex Elder <elder@linaro.org>
Thu, 25 Mar 2021 14:44:36 +0000 (09:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 00:22:30 +0000 (17:22 -0700)
commit04bf6974d74a20d3974f19fe7e3088c293d5f6de
tree0a070400cd73ad8afe72d4e2dea549f324bb14ef
parentccf86105e50112c23361e098161aedf588bb4475
net: ipa: update GSI ring size registers

Each GSI channel has a CNTXT_1 register that encodes the size of its
ring buffer.  The size of the field that records that is increased
starting at IPA v4.9.  Replace the use of a fixed-size field mask
with a new inline function that encodes that size value.

Similarly, the size of GSI event rings can be larger starting with
IPA v4.9, so create a function to encode that as well.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c
drivers/net/ipa/gsi_reg.h