QEMU-Arm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Junjie Cao <junjie.cao@linux.dev>
To: jamin_lin@aspeedtech.com
Cc: marcandre.lureau@redhat.com, clg@kaod.org,
	peter.maydell@linaro.org, steven_lee@aspeedtech.com,
	leetroy@gmail.com, kane_chen@aspeedtech.com,
	andrew@codeconstruct.com.au, joel@jms.id.au, qemu-arm@nongnu.org,
	qemu-devel@nongnu.org, troy_lee@aspeedtech.com,
	junjie.cao@intel.com
Subject: Re: [PATCH v5 7/8] hw/usb/redirect-server: Stream interrupt IN endpoints
Date: Fri, 16 Oct 2026 08:01:25 +0000	[thread overview]
Message-ID: <20261016080125.418342-2-junjie.cao@linux.dev> (raw)
In-Reply-To: <20261015093417.573063-8-jamin_lin@aspeedtech.com>

From: Junjie Cao <junjie.cao@intel.com>

Hi Jamin,

> +        st.status = usbredir_server_status(p->status);
> +        usbredirparser_send_interrupt_receiving_status(s->parser, 0, &st);
> +        usbredirparser_do_write(s->parser);
> +        s->intr_stream[ep_nr].started = false;

Could we report usb_redir_stall when stopping the stream here? The
usb_redir_interrupt_receiving_status section of the protocol requires
that status when a stream stops without an explicit stop request.

In the QEMU client's status callback, only STALL clears
interrupt_started. Other errors leave it set, so restarting the stream
then depends on another path, such as endpoint stop or reconfiguration.


  reply	other threads:[~2026-10-16 13:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15  9:34 [PATCH v5 0/8] hw/usb: Add a usbredir server transport Jamin Lin
2026-10-15  9:34 ` [PATCH v5 1/8] hw/usb/bus: Let a bus opt out of automatic hub insertion Jamin Lin
2026-10-15  9:34 ` [PATCH v5 2/8] hw/usb/redirect-server: Add a usbredir server device Jamin Lin
2026-10-15  9:34 ` [PATCH v5 3/8] hw/usb/redirect-server: Connect usbredirparser to a chardev Jamin Lin
2026-10-15  9:34 ` [PATCH v5 4/8] hw/usb/redirect-server: Announce the exported device Jamin Lin
2026-10-15  9:34 ` [PATCH v5 5/8] hw/usb/redirect-server: Implement control transfers Jamin Lin
2026-10-16  8:01   ` Junjie Cao
2026-10-19  6:17     ` Jamin Lin
2026-10-16  9:26   ` Jamin Lin
2026-10-16  9:27     ` Jamin Lin
2026-10-15  9:34 ` [PATCH v5 6/8] hw/usb/redirect-server: Implement bulk and interrupt transfers Jamin Lin
2026-10-15  9:34 ` [PATCH v5 7/8] hw/usb/redirect-server: Stream interrupt IN endpoints Jamin Lin
2026-10-16  8:01   ` Junjie Cao [this message]
2026-10-19  6:58     ` Jamin Lin
2026-10-16  8:21   ` marcandre.lureau
2026-10-19  6:56     ` Jamin Lin
2026-10-15  9:34 ` [PATCH v5 8/8] hw/arm/aspeed: Enable the usbredir server transport Jamin Lin
2026-10-16  6:31 ` [PATCH v5 0/8] hw/usb: Add a " Jamin Lin
2026-10-16  6:38   ` Cédric Le Goater

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=20261016080125.418342-2-junjie.cao@linux.dev \
    --to=junjie.cao@linux.dev \
    --cc=andrew@codeconstruct.com.au \
    --cc=clg@kaod.org \
    --cc=jamin_lin@aspeedtech.com \
    --cc=joel@jms.id.au \
    --cc=junjie.cao@intel.com \
    --cc=kane_chen@aspeedtech.com \
    --cc=leetroy@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=steven_lee@aspeedtech.com \
    --cc=troy_lee@aspeedtech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox