]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe30adf7d5713a9a3a811b60054af221057884f0
tree832f48ec22a096ca9a13a0526a7f1a80050b4308
parente2308e6fee3efdbff655eb350411e8cf0dc1aa40
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