]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firewire: core: add tests for serialization/deserialization of phy config packet
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 6 Jun 2024 23:51:32 +0000 (08:51 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 16 Jun 2024 23:37:03 +0000 (08:37 +0900)
commit75d47101fa37e60570bd97debd18e5519272d233
tree8b320944396a319a667396eb68c114cd9eff654e
parent677ceae190732ee844f940d1e4860af4022d2be3
firewire: core: add tests for serialization/deserialization of phy config packet

In the protocol of IEEE 1394, phy configuration packet is broadcasted to
the bus to configure all PHYs residing on the bus. It includes two
purposes; selecting root node and optimizing gap count.

This commit adds some helper function to serialize/deserialize the
content of phy configuration packet, as well as some KUnit tests for it.

Link: https://lore.kernel.org/r/20240606235133.231543-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/packet-serdes-test.c
drivers/firewire/phy-packet-definitions.h