]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5731a9c9bde61b450803bf9e373c16a76108e34
treea9da1c5dd6b8030367980bd3212ed92491b2b617
parent6505ce54c4397eb9d5f0486bb7613aea2a856910
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