summaryrefslogtreecommitdiff
path: root/drivers/firewire/core.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2024-09-09 23:00:17 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2024-09-09 23:00:17 +0900
commite97fb38fa1404abef72bac7de2c5bf2bbab4d93b (patch)
tree9471d2dbdf0b4fe564f250effb59c1f949e33138 /drivers/firewire/core.h
parent7b713929bbd80a400ceb90f398bffe58e5cc8fc8 (diff)
firewire: core: move workqueue handler from 1394 OHCI driver to core function
In current implementation, the work item for isochronous context executes the same procedure of fw_iso_context_flush_completions() internally. There is a space to refactor the implementation. This commit calls fw_iso_context_flush_completions() in the work item. It obsoletes fw_iso_context_init_work(). It also obsoletes a pair of disable_work_sync() and enable_work() since the usage of test_and_set_bit_lock() mediates concurrent call already. Link: https://lore.kernel.org/r/20240909140018.65289-2-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'drivers/firewire/core.h')
-rw-r--r--drivers/firewire/core.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h
index 0ae2c84ecafe..96ae366889e0 100644
--- a/drivers/firewire/core.h
+++ b/drivers/firewire/core.h
@@ -159,11 +159,6 @@ int fw_iso_buffer_alloc(struct fw_iso_buffer *buffer, int page_count);
int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card,
enum dma_data_direction direction);
-static inline void fw_iso_context_init_work(struct fw_iso_context *ctx, work_func_t func)
-{
- INIT_WORK(&ctx->work, func);
-}
-
/* -topology */