From: Suyuan Wang <shyckless@gmail.com>
To: o-takashi@sakamocchi.jp, clemens@ladisch.de, tiwai@suse.com
Cc: stefanr@s5r6.in-berlin.de, linux-sound@vger.kernel.org,
perex@perex.cz, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] ALSA: firewire: Abort transactions on a bus reset
Date: Sun, 22 Nov 2026 13:46:28 +0000 [thread overview]
Message-ID: <20261122-firewire-busreset-v2-0-e104d785c8a1@gmail.com> (raw)
fcp_avc_transaction() and snd_efw_transaction_run() resend their
command after a bus reset but never move the transaction back to
STATE_PENDING, so both loops keep resending without a retry limit
until sending fails.
As Takashi suggested, v2 no longer resends: on a bus reset the
transaction is ended and -EAGAIN is returned, following the AV/C
general specification, which says that a target discards any
transaction in progress on a bus reset.
Found with a static analysis tool and checked by hand. Compile tested
only (x86_64, W=1); I don't have FireWire audio hardware.
Changes in v2:
- Abort the transaction and return -EAGAIN on a bus reset instead of
rearming it and resending (Takashi).
- Drop ERROR_DELAY_MS (and <linux/delay.h> in fcp.c), now unused.
v1: https://lore.kernel.org/all/20261120-firewire-busreset-v1-0-8bb9079a2984@gmail.com/
---
Suyuan Wang (2):
ALSA: firewire-lib: Abort the FCP transaction on a bus reset
ALSA: fireworks: Abort the transaction on a bus reset
sound/firewire/fcp.c | 5 ++---
sound/firewire/fireworks/fireworks_transaction.c | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
WARNING: multiple messages have this Message-ID (diff)
From: Suyuan Wang via B4 Relay <devnull+shyckless.gmail.com@kernel.org>
To: o-takashi@sakamocchi.jp, clemens@ladisch.de, tiwai@suse.com
Cc: stefanr@s5r6.in-berlin.de, linux-sound@vger.kernel.org,
perex@perex.cz, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] ALSA: firewire: Abort transactions on a bus reset
Date: Sun, 22 Nov 2026 13:46:28 +0000 [thread overview]
Message-ID: <20261122-firewire-busreset-v2-0-e104d785c8a1@gmail.com> (raw)
fcp_avc_transaction() and snd_efw_transaction_run() resend their
command after a bus reset but never move the transaction back to
STATE_PENDING, so both loops keep resending without a retry limit
until sending fails.
As Takashi suggested, v2 no longer resends: on a bus reset the
transaction is ended and -EAGAIN is returned, following the AV/C
general specification, which says that a target discards any
transaction in progress on a bus reset.
Found with a static analysis tool and checked by hand. Compile tested
only (x86_64, W=1); I don't have FireWire audio hardware.
Changes in v2:
- Abort the transaction and return -EAGAIN on a bus reset instead of
rearming it and resending (Takashi).
- Drop ERROR_DELAY_MS (and <linux/delay.h> in fcp.c), now unused.
v1: https://lore.kernel.org/all/20261120-firewire-busreset-v1-0-8bb9079a2984@gmail.com/
---
Suyuan Wang (2):
ALSA: firewire-lib: Abort the FCP transaction on a bus reset
ALSA: fireworks: Abort the transaction on a bus reset
sound/firewire/fcp.c | 5 ++---
sound/firewire/fireworks/fireworks_transaction.c | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
next reply other threads:[~2026-11-22 13:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 13:46 Suyuan Wang [this message]
2026-11-22 13:46 ` [PATCH v2 0/2] ALSA: firewire: Abort transactions on a bus reset Suyuan Wang via B4 Relay
2026-11-22 13:46 ` [PATCH v2 1/2] ALSA: firewire-lib: Abort the FCP transaction " Suyuan Wang
2026-11-22 13:46 ` Suyuan Wang via B4 Relay
2026-11-22 13:46 ` [PATCH v2 2/2] ALSA: fireworks: Abort the " Suyuan Wang
2026-11-22 13:46 ` Suyuan Wang via B4 Relay
2026-11-23 8:48 ` [PATCH v2 0/2] ALSA: firewire: Abort transactions " Takashi Sakamoto
2026-11-23 9:04 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261122-firewire-busreset-v2-0-e104d785c8a1@gmail.com \
--to=shyckless@gmail.com \
--cc=clemens@ladisch.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=o-takashi@sakamocchi.jp \
--cc=perex@perex.cz \
--cc=stefanr@s5r6.in-berlin.de \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.