net: ipa: move more code out of gsi_channel_update()
authorAlex Elder <elder@linaro.org>
Wed, 15 Jun 2022 16:59:29 +0000 (11:59 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jun 2022 03:44:04 +0000 (20:44 -0700)
commit81765eeac1b050bdbf360f00b757d15f25613b63
tree8df50bff23357b3646795941fb0dd3b2070f14af
parent9f1c3ad65406b3ee9e03884bd1d8c6973a76b3eb
net: ipa: move more code out of gsi_channel_update()

Move the processing done for TX channels in gsi_channel_update()
into gsi_evt_ring_rx_update().  The called function is called for
both RX and TX channels, so rename it to be gsi_evt_ring_update().
As a result, this code no longer assumes events in an event ring are
associated with just one channel.

Because all events in a ring are handled in that function, we can
move the call to gsi_trans_move_complete() there, and can ring the
event ring doorbell there as well after all new events in the ring
have been processed.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi.c