firewire: core: detect model name for legacy layout of configuration ROM
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 24 Dec 2023 22:23:01 +0000 (07:23 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Jan 2024 00:36:56 +0000 (09:36 +0900)
commit2eab8bc0f0c80ddb8c7d8192ff6f13c2bc505739
treef112d579da23d1889315c5106b0d675e4085ca8c
parentb6a38057d06e282c1a4630db1d7b74548664a1d7
firewire: core: detect model name for legacy layout of configuration ROM

As the part of support for legacy layout of configuration ROM, this
commit traverses vendor directory as well as root directory when showing
device attribute for node device. This change expects 'model_name'
attribute appears in node device, however it is probable to see the other
types of descriptor leaf if the vendor directory includes.

Suggested-by: Adam Goldman <adamg@pobox.com>
Link: https://lore.kernel.org/r/20231221134849.603857-8-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-device.c
drivers/firewire/device-attribute-test.c