firewire: core: code refactoring to evaluate transaction result to CSR_BUS_MANAGER_ID
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:21:04 +0000 (10:21 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:26:26 +0000 (10:26 +0900)
commit7dc12e84eff7f934e2456a858ad23d3743c69578
tree61f04c2b3a18859a8141c227719c5a50d0867ac6
parentb70a5f33381f7815f4a579f7b9de33f276c9d8f9
firewire: core: code refactoring to evaluate transaction result to CSR_BUS_MANAGER_ID

The call of bm_work should be done after acquiring spin lock of fw_card.
For asynchronous transaction, the lock should be released temporarily
due to event waiting.

A commit 27310d561622 ("firewire: core: use guard macro to maintain
properties of fw_card") applied scoped_guard() to the bm_work function,
however it looks hard to follow to the control flow.

This commit refactors the spin lock acquisition after the transaction.

Link: https://lore.kernel.org/r/20250908012108.514698-8-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-card.c