]> 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)
commit9503507e8cd5c8fab67cf4f656e2435713cf0e44
tree2b2efdd30457f30f8f43f527866eb85099a065f4
parent375ac00108b0b83539cffbeefe610b08b81f7edc
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