]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: rearrange transaction initialization
authorAlex Elder <elder@linaro.org>
Tue, 19 Jul 2022 18:10:17 +0000 (13:10 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jul 2022 04:04:36 +0000 (21:04 -0700)
commit304cdb530d8ebea7efefa41ef469885e38307865
tree2b2efdd30457f30f8f43f527866eb85099a065f4
parentfd088c1f138323875a65eed112bfe47c896bdaf2
net: ipa: rearrange transaction initialization

The transaction map is really associated with the transaction pool;
move its definition earlier in the gsi_trans_info structure.

Rearrange initialization in gsi_channel_trans_init() so it
sets the tre_avail value first, then initializes the transaction
pool, and finally allocating the transaction map.

Update comments.

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