diff options
author | Alex Elder <elder@linaro.org> | 2022-09-06 19:19:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-09 12:45:25 +0200 |
commit | e0e3406c60d7e5b004cc3059dea6c7574d26ca66 (patch) | |
tree | 12d68b8c5d85115fe592dc9605000c424c5424c0 /drivers/net/ipa/gsi_trans.c | |
parent | net: ipa: kill all other transaction lists (diff) | |
download | linux-e0e3406c60d7e5b004cc3059dea6c7574d26ca66.tar.xz linux-e0e3406c60d7e5b004cc3059dea6c7574d26ca66.zip |
net: ipa: update channel in gsi_channel_trans_complete()
Have gsi_channel_trans_complete() update the known state from
hardware rather than doing so in gsi_channel_poll_one().
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/gsi_trans.c')
-rw-r--r-- | drivers/net/ipa/gsi_trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipa/gsi_trans.c b/drivers/net/ipa/gsi_trans.c index a3ae0ca4813c..0b78ae904bac 100644 --- a/drivers/net/ipa/gsi_trans.c +++ b/drivers/net/ipa/gsi_trans.c @@ -241,7 +241,7 @@ struct gsi_trans *gsi_channel_trans_complete(struct gsi_channel *channel) u16 trans_id = trans_info->completed_id; if (trans_id == trans_info->pending_id) - return NULL; + return gsi_channel_update(channel); return &trans_info->trans[trans_id %= channel->tre_count]; } |