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)
commit42839f9585a00b53691bc56e6a238029f1466959
tree0a070400cd73ad8afe72d4e2dea549f324bb14ef
parent4f57b2fa0744f2fffd61936facd258897834aad5
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