net: ipa: record IPA version in GSI structure
authorAlex Elder <elder@linaro.org>
Mon, 2 Nov 2020 17:53:56 +0000 (11:53 -0600)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Nov 2020 00:28:04 +0000 (16:28 -0800)
commit14dbf977dd45115a13a64ab480886598ee0ba755
tree832f48ec22a096ca9a13a0526a7f1a80050b4308
parent1d0c09dee911f49e88de0ba52d1f0e57f6eb4c47
net: ipa: record IPA version in GSI structure

Record the IPA version passed to gsi_init() in the GSI structure.
This allows that value to be used directly where needed, rather than
passing and storing certain flag arguments through the code.

In particular, for all but one supported version of IPA, the command
channel is programmed to only use an "escape buffer".  By storing
the IPA version, we can do a simple version check in one location,
and avoid storing a flag field in every channel (and passing a flag
along while initializing channels to set that field properly).

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