net: ipa: use IDs for last allocated transaction
authorAlex Elder <elder@linaro.org>
Fri, 2 Sep 2022 21:02:14 +0000 (16:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Sep 2022 11:47:01 +0000 (12:47 +0100)
commitc30623ea0b3a9d766f34f75a326b8c610ca3105e
tree3a77345bde0917bed762389d9bd76f4657d78d76
parentb2abe33d23cfaea6cd3f8335a1ee08c480512c6f
net: ipa: use IDs for last allocated transaction

Use the allocated and free transaction IDs to determine whether the
"last" transaction used for quiescing a channel is in allocated
state.  The last allocated transaction that has not been committed
(if any) immediately precedes the first free transaction in the
transaction array.

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