]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ipa: introduce gsi_channel_trans_idle()
authorAlex Elder <elder@linaro.org>
Thu, 3 Feb 2022 17:09:24 +0000 (11:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2022 10:16:08 +0000 (10:16 +0000)
commit5fc7f9ba2e510fe725f0fff6ddfe824f7184da03
tree05e915a95ff8af560faa4844e382b7e41653fbbb
parentd0ac30e74ea096d2e2fd4e6ebce1113b8b8e8ada
net: ipa: introduce gsi_channel_trans_idle()

Create a new function that returns true if all transactions for a
channel are available for use.

Use it in ipa_endpoint_replenish_enable() to see whether to start
replenishing, and in ipa_endpoint_replenish() to determine whether
it's necessary after a failure to schedule delayed work to ensure a
future replenish attempt occurs.

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