net: ipa: use proper endpoint mask for suspend
authorAlex Elder <elder@linaro.org>
Fri, 30 Dec 2022 22:33:04 +0000 (16:33 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Jan 2023 12:01:14 +0000 (12:01 +0000)
commitd9d71a89f28d27ac772c429b37d52668d011df7a
tree4e54b78010a21f54d0b1ff64e39795326ddf569b
parent1c429c10192c930fd358b0c9a777c222a352d945
net: ipa: use proper endpoint mask for suspend

It is now possible for a system to have more than 32 endpoints.  As
a result, registers related to endpoint suspend are parameterized,
with 32 endpoints represented in one more registers.

In ipa_interrupt_suspend_control(), the IPA_SUSPEND_EN register
offset is determined properly, but the bit mask used still assumes
the number of enpoints won't exceed 32.  This is a bug.  Fix it.

Fixes: f298ba785e2d ("net: ipa: add a parameter to suspend registers")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_interrupt.c