linux-stable/drivers/firewire
Takashi Sakamoto b89198d02d firewire: core: use long bus reset on gap count error
[ Upstream commit d0b06dc48f ]

When resetting the bus after a gap count error, use a long rather than
short bus reset.

IEEE 1394-1995 uses only long bus resets. IEEE 1394a adds the option of
short bus resets. When video or audio transmission is in progress and a
device is hot-plugged elsewhere on the bus, the resulting bus reset can
cause video frame drops or audio dropouts. Short bus resets reduce or
eliminate this problem. Accordingly, short bus resets are almost always
preferred.

However, on a mixed 1394/1394a bus, a short bus reset can trigger an
immediate additional bus reset. This double bus reset can be interpreted
differently by different nodes on the bus, resulting in an inconsistent gap
count after the bus reset. An inconsistent gap count will cause another bus
reset, leading to a neverending bus reset loop. This only happens for some
bus topologies, not for all mixed 1394/1394a buses.

By instead sending a long bus reset after a gap count inconsistency, we
avoid the doubled bus reset, restoring the bus to normal operation.

Signed-off-by: Adam Goldman <adamg@pobox.com>
Link: https://sourceforge.net/p/linux1394/mailman/message/58741624/
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:22:33 -04:00
..
core-card.c firewire: core: use long bus reset on gap count error 2024-03-26 18:22:33 -04:00
core-cdev.c firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-02-22 12:47:11 +01:00
core-device.c firewire: core: correct documentation of fw_csr_string() kernel API 2024-02-23 08:12:56 +01:00
core-iso.c
core-topology.c firewire: core: extend card->lock in fw_core_handle_bus_reset 2022-05-12 12:20:24 +02:00
core-transaction.c firewire: remove check of list iterator against head past the loop body 2022-05-12 12:20:24 +02:00
core.h
init_ohci1394_dma.c
Kconfig
Makefile
net.c
nosy-user.h
nosy.c
nosy.h
ohci.c firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards 2024-01-15 18:23:43 +01:00
ohci.h
sbp2.c firewire: remove check of list iterator against head past the loop body 2022-05-12 12:20:24 +02:00