summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/gsi_private.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-09-06 20:19:41 +0300
committerDavid S. Miller <davem@davemloft.net>2022-09-09 13:45:25 +0300
commite0e3406c60d7e5b004cc3059dea6c7574d26ca66 (patch)
tree12d68b8c5d85115fe592dc9605000c424c5424c0 /drivers/net/ipa/gsi_private.h
parentd338ae28d8a866c57fcac38f3d77bcc1d1702d19 (diff)
downloadlinux-e0e3406c60d7e5b004cc3059dea6c7574d26ca66.tar.xz
net: ipa: update channel in gsi_channel_trans_complete()
Have gsi_channel_trans_complete() update the known state from hardware rather than doing so in gsi_channel_poll_one(). Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/gsi_private.h')
-rw-r--r--drivers/net/ipa/gsi_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ipa/gsi_private.h b/drivers/net/ipa/gsi_private.h
index 0b2516fa21b5..a937811bb1bb 100644
--- a/drivers/net/ipa/gsi_private.h
+++ b/drivers/net/ipa/gsi_private.h
@@ -94,6 +94,14 @@ void gsi_channel_trans_exit(struct gsi_channel *channel);
*/
void gsi_channel_doorbell(struct gsi_channel *channel);
+/* gsi_channel_update() - Update knowledge of channel hardware state
+ * @channel: Channel whose doorbell should be rung
+ *
+ * Consult hardware, move any newly completed transactions to a
+ * channel's completed list
+ */
+struct gsi_trans *gsi_channel_update(struct gsi_channel *channel);
+
/**
* gsi_ring_virt() - Return virtual address for a ring entry
* @ring: Ring whose address is to be translated