Home
last modified time | relevance | path

Searched hist:"9 f1c3ad65406b3ee9e03884bd1d8c6973a76b3eb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ipa/
H A Dgsi.cdiff 9f1c3ad65406b3ee9e03884bd1d8c6973a76b3eb Wed Jun 15 11:59:28 CDT 2022 Alex Elder <elder@linaro.org> 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>