Skip to content

ALSA: firewire: Don't loop forever after a bus reset

Suyuan Wang b4-sent linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20261120-firewire-busreset-abe9c7ac3457

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ALSA: firewire-lib: Rearm the FCP transaction after a bus resetsound/firewire/fcp.c+2 -00 replies
2/2ALSA: fireworks: Rearm the transaction after a bus resetsound/firewire/fireworks/fireworks_transaction.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ALSA: firewire: Don't loop forever after a bus reset

fcp_avc_transaction() and snd_efw_transaction_run() resend their command after a bus reset but never move the transaction back to STATE_PENDING. The response to the resent command is then ignored and the wait returns immediately, so both loops keep resending the command after each ERROR_DELAY_MS pause, without a retry limit, until sending fails.

Each patch sets the state back to STATE_PENDING before resending.

Found with a static analysis tool and checked by hand. Compile tested only (x86_64, W=1); I don't have FireWire audio hardware.

---
Suyuan Wang (2):
ALSA: firewire-lib: Rearm the FCP transaction after a bus reset
ALSA: fireworks: Rearm the transaction after a bus reset

 sound/firewire/fcp.c                             | 2 ++
 sound/firewire/fireworks/fireworks_transaction.c | 2 ++
 2 files changed, 4 insertions(+)