]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ipa: call gsi_evt_ring_rx_update() unconditionally
authorAlex Elder <elder@linaro.org>
Wed, 15 Jun 2022 16:59:28 +0000 (11:59 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jun 2022 03:44:04 +0000 (20:44 -0700)
commit9f1c3ad65406b3ee9e03884bd1d8c6973a76b3eb
tree35de8cf665e756b6fd8fbbbe9a17a7b433615ab4
parent2f48fb0edc0d9521e4b072f69baa5dfa1dba6f8c
net: ipa: call gsi_evt_ring_rx_update() unconditionally

When an RX transaction completes, we update the trans->len field to
contain the actual number of bytes received.  This is done in a loop
in gsi_evt_ring_rx_update().

Change that function so it checks the data transfer direction
recorded in the transaction, and only updates trans->len for RX
transfers.

Then call it unconditionally.  This means events for TX endpoints
will run through the loop without otherwise doing anything, but
this will change shortly.

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