Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jaegyun Lee" <dreams200260@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: gadget: midi2: do not repeat a MIDI 1.0 message at a request boundary
Date: Sun, 29 Nov 2026 14:10:01 +0000	[thread overview]
Message-ID: <sashiko-outbox-239687@kernel.org> (raw)
In-Reply-To: <20261129140209.547953-1-dreams200260@gmail.com>

> In MIDI 1.0 mode (altset 0) process_midi1_transmit() converts UMP data
> from user space into USB-MIDI 1.0 packets through a per-cable byte
> buffer (midi2->midi1_port[cable].buf/pending). process_midi1_byte()
> returns true when the packet it just wrote filled the USB request
> (req_buf_size - length <= 4) and the request was queued:
> 
> 	memcpy(req->buf + req->length, p, sizeof(p));
> 	req->length += sizeof(p);
> 	...
> 	if (midi2->info.req_buf_size - req->length <= 4) {
> 		queue_request_ep_raw(req);
> 		*req_p = NULL;
> 		return true;
> 	}
> 
> [ ... ]
> 
> Fixes: d6468be779af ("usb: gadget: midi2: MIDI 1.0 interface (altset 0) support")
> Cc: stable@vger.kernel.org
> Assisted-by: ZCode:GLM-5.4
> Signed-off-by: Jaegyun Lee <dreams200260@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129140209.547953-1-dreams200260@gmail.com?part=1

      reply	other threads:[~2026-11-29 14:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 14:02 [PATCH] usb: gadget: midi2: do not repeat a MIDI 1.0 message at a request boundary Jaegyun Lee
2026-11-29 14:10 ` sashiko-bot [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=sashiko-outbox-239687@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dreams200260@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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