]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firewire: ohci: reduce the size of common context structure by extracting members...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 10 Jul 2025 13:19:16 +0000 (22:19 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 12 Jul 2025 12:52:16 +0000 (21:52 +0900)
commit95a042a0c8ecd3c1e886648f6f6ab9c7e4403db9
tree7f621f244107f533cbade1551ebe93f6f51d9451
parent81456710391d3e55e623b387f01830a50747fd75
firewire: ohci: reduce the size of common context structure by extracting members into AT structure

In commit 386a4153a2c1 ("firewire: ohci: cache the context run bit"), a
running member was added to the context structure to cache the running
state of a given DMA context. Although this member is accessible from IR,
IT, and AT contexts, it is currently used only by the AT context.

Additionally, the context structure includes a work item, which is also
used by the AT context. Both members are unnecessary for IR and IT
contexts.

This commit refactors the code by moving these two members into a new
structure specific to AT context.

Link: https://lore.kernel.org/r/20250710131916.31289-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/ohci.c