]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firewire: core: add helper function to handle port status from self ID sequence and...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 5 Jun 2024 23:51:46 +0000 (08:51 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 16 Jun 2024 23:37:02 +0000 (08:37 +0900)
commit93389767da62142f4fa16733ddbc258d315180e0
tree164323d751493a06434c1a7c36cbbe7e937abd3d
parent7bd10e0e3a74f84eba4122bfc63a5896268752b8
firewire: core: add helper function to handle port status from self ID sequence and its KUnit test

The self ID sequence delivers the information about the state of port.

This commit adds some enumerations to express the state of port, and
some helper functions to handle the state. It adds a KUnit test for them,
too.

Link: https://lore.kernel.org/r/20240605235155.116468-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/phy-packet-definitions.h
drivers/firewire/self-id-sequence-helper-test.c