]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firewire: core: add enumerator of self ID sequences and its KUnit test
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 5 Jun 2024 23:51:45 +0000 (08:51 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 16 Jun 2024 23:37:02 +0000 (08:37 +0900)
commit7bd10e0e3a74f84eba4122bfc63a5896268752b8
tree83506e7a314accfbe2bcb4389ebc7c32e055c69e
parent6ba59ff4227927d3a8530fc2973b80e94b54d58f
firewire: core: add enumerator of self ID sequences and its KUnit test

When the state of bus reset finishes, 1394 OHCI driver constructs self ID
sequences, then it calls fw_core_handle_bus_reset() in core function. The
core function enumerates the self ID sequences to build bus topology.

This commit adds a structure and some helper functions for the enumeration,
and adds a KUnit test suite to ensure its expected behaviour.

Link: https://lore.kernel.org/r/20240605235155.116468-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/.kunitconfig
drivers/firewire/Kconfig
drivers/firewire/Makefile
drivers/firewire/phy-packet-definitions.h [new file with mode: 0644]
drivers/firewire/self-id-sequence-helper-test.c [new file with mode: 0644]