]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: track committed transactions with an ID
authorAlex Elder <elder@linaro.org>
Wed, 31 Aug 2022 22:40:14 +0000 (17:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2022 11:08:44 +0000 (12:08 +0100)
commit5ff72264cde4446ad3d1e43c90dc5ade26246aba
tree4ba7116b35bac72337fa96fe969c1459c2865e59
parent3441b7df517832f89e3bcb978d9e137b67b8c6a7
net: ipa: track committed transactions with an ID

Add a transaction ID field to track the first element in a channel's
transaction array that has been committed, but not yet passed to the
hardware.  Advance the ID when the hardware is notified via doorbell
that TREs from a transaction are ready for consumption.

Temporarily add warnings that verify that the first committed
transaction tracked by the ID matches the first element on the
committed list, both when committing and pending (at doorbell).

Remove the temporary warnings added by the previous commit.

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