]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't pass size to ipa_cmd_transfer_add()
authorAlex Elder <elder@linaro.org>
Tue, 26 Jan 2021 18:57:03 +0000 (12:57 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:23:26 +0000 (20:23 -0800)
commitcbf3c4daf0d62724599cc5eccf60d2af50f1004f
tree03e0dcdedfbaea2ad8fd11b1705acb65224ad4d8
parent475065a6cc0a1a8026106c451c3deabff81b3ffe
net: ipa: don't pass size to ipa_cmd_transfer_add()

The only time we transfer data (rather than issuing a command) out
of the AP->command TX endpoint is when we're clearing the hardware
pipeline.  All that's needed is a "small" data buffer, and its
contents aren't even important.

For convenience, we just transfer a command structure in this case
(it's already mapped for DMA).  The TRE is added to a transaction
using ipa_cmd_ip_tag_status_add(), but we ignore the size value
provided to that function.  So just get rid of the size argument.

Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_cmd.c