From: Takashi Iwai <tiwai@suse.de>
To: YuanZhe Liu <25031212351@stu.xidian.edu.cn>
Cc: Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
Bin Yu <byu@xidian.edu.cn>, Cheng Wen <wencheng@xidian.edu.cn>
Subject: Re: [PATCH v2 0/2] ALSA: 6fire: avoid resubmitting an active URB
Date: Wed, 02 Dec 2026 09:42:10 +0100 [thread overview]
Message-ID: <87qzg0xee5.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261201113541.6237-1-25031212351@stu.xidian.edu.cn>
On Tue, 01 Dec 2026 12:35:39 +0100,
YuanZhe Liu wrote:
>
> The 6fire driver submits URBs from callbacks that do not own them, and the
> USB core complains when the URB is still queued:
>
> URB 000000003ec29e65 submitted while active
> WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb
>
> There are two independent paths. The MIDI output resubmits rt->out_urb
> after the stream was stopped while the previous transfer was still in
> flight, and the PCM capture handler unconditionally resubmits the
> playback URB paired with the capture URB that has just completed.
>
> Both patches make the driver check whether the URB is still queued, as
> sound/usb/midi.c does with active_urbs, and leave the data to the
> completion handler instead of submitting an active URB.
>
> v1 -> v2:
> - Clear rt->out also when the resubmission fails in the MIDI completion
> handler; otherwise a later trigger(1) returns early at the rt->out
> check and the stream stays stalled. Pointed out by the Sashiko
> review.
>
>
> YuanZhe Liu (2):
> ALSA: 6fire: Don't resubmit an active MIDI URB
> ALSA: 6fire: Don't resubmit an active PCM out URB
Applied both patches to for-next branch.
thanks,
Takashi
prev parent reply other threads:[~2026-12-02 8:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 8:48 [PATCH 0/2] ALSA: 6fire: avoid resubmitting an active URB YuanZhe Liu
2026-11-23 8:48 ` [PATCH 1/2] ALSA: 6fire: Don't resubmit an active MIDI URB YuanZhe Liu
2026-11-23 8:56 ` sashiko-bot
2026-11-23 8:48 ` [PATCH 2/2] ALSA: 6fire: Don't resubmit an active PCM out URB YuanZhe Liu
2026-12-01 10:23 ` [PATCH 0/2] ALSA: 6fire: avoid resubmitting an active URB Takashi Iwai
2026-12-01 11:35 ` [PATCH v2 " YuanZhe Liu
2026-12-01 11:35 ` [PATCH v2 1/2] ALSA: 6fire: Don't resubmit an active MIDI URB YuanZhe Liu
2026-12-01 11:35 ` [PATCH v2 2/2] ALSA: 6fire: Don't resubmit an active PCM out URB YuanZhe Liu
2026-12-02 8:42 ` Takashi Iwai [this message]
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=87qzg0xee5.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=25031212351@stu.xidian.edu.cn \
--cc=byu@xidian.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=wencheng@xidian.edu.cn \
/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.