net: ipa: simplify endpoint transaction completion
authorAlex Elder <elder@linaro.org>
Fri, 10 Jun 2022 15:46:13 +0000 (10:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2022 11:01:58 +0000 (12:01 +0100)
commit983a1a3081bb42651c44a777ed9af9ee2962de8d
treea9da1c5dd6b8030367980bd3212ed92491b2b617
parent317595d2ce779dca1aaf2af5e9a627513f10f202
net: ipa: simplify endpoint transaction completion

When a GSI transaction completes, ipa_endpoint_trans_complete() is
eventually called.  That handles TX and RX completions separately,
but ipa_endpoint_tx_complete() is a no-op.

Instead, have ipa_endpoint_trans_complete() return immediately for a
TX transaction, and incorporate code from ipa_endpoint_rx_complete()
to handle RX transactions.

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