]> git.baikalelectronics.ru Git - kernel.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)
commitd92950525372d772775ff8e613851946c50fc8bd
tree35de8cf665e756b6fd8fbbbe9a17a7b433615ab4
parent6b9c8736de707bc42103999ee400485ea9af1ce7
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