diff options
author | Alex Elder <elder@linaro.org> | 2020-06-30 07:44:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 13:10:57 -0700 |
commit | 6cb63ea6a39eac9640d109f274a237b34350c183 (patch) | |
tree | d0c3728171350c73a468d7a46195669c31eb07b9 /drivers/net/ipa/ipa_cmd.h | |
parent | 41af5436e857ec64f302fcc9b6e4a8c526b6b402 (diff) | |
download | lwn-6cb63ea6a39eac9640d109f274a237b34350c183.tar.gz lwn-6cb63ea6a39eac9640d109f274a237b34350c183.zip |
net: ipa: introduce ipa_cmd_tag_process()
Create a new function ipa_cmd_tag_process() that simply allocates a
transaction, adds a tag process command to it to clear the hardware
pipeline, and commits the transaction.
Call it in from ipa_endpoint_suspend(), after suspending the modem
endpoints but before suspending the AP command TX and AP LAN RX
endpoints (which are used by the tag sequence).
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_cmd.h')
-rw-r--r-- | drivers/net/ipa/ipa_cmd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_cmd.h b/drivers/net/ipa/ipa_cmd.h index e440aa69c8b5..1a646e0264a0 100644 --- a/drivers/net/ipa/ipa_cmd.h +++ b/drivers/net/ipa/ipa_cmd.h @@ -172,6 +172,14 @@ void ipa_cmd_tag_process_add(struct gsi_trans *trans); u32 ipa_cmd_tag_process_count(void); /** + * ipa_cmd_tag_process() - Perform a tag process + * + * @Return: The number of elements to allocate in a transaction + * to hold tag process commands + */ +void ipa_cmd_tag_process(struct ipa *ipa); + +/** * ipa_cmd_trans_alloc() - Allocate a transaction for the command TX endpoint * @ipa: IPA pointer * @tre_count: Number of elements in the transaction |