]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: GSI only needs one completion
authorAlex Elder <elder@linaro.org>
Wed, 24 Nov 2021 20:25:10 +0000 (14:25 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:37:34 +0000 (19:37 -0800)
commiteec8824d6e39b989823be660adb076153a45d533
tree1c45cbaaf483ecd4eb41cf7469169678ef8c9eec
parent24eb2842cf55f3875fd149ec2a96c019a6573b5c
net: ipa: GSI only needs one completion

A mutex ensures we never submit more than one GSI command of any
kind at once.  This means the per-channel and per-event ring
completion structures provide no benefit.  Instead, just use the
single (existing) GSI completion to signal the completion of GSI
commands of all types.

This makes gsi_evt_ring_init() a trivial function with no inverse,
so open-code it in its sole caller and get rid of the function.

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