From: sashiko-bot@kernel.org
To: "Nicolai Buchwitz" <nb@tipi-net.de>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH 1/4] usb: usbtmc: handle undersized high-speed bulk IN packets
Date: Tue, 20 Oct 2026 14:46:11 +0000 [thread overview]
Message-ID: <sashiko-outbox-179189@kernel.org> (raw)
In-Reply-To: <20261020-fix-usbtmc-short-packets-v1-1-903f4d029193@tipi-net.de>
> The Siglent SDM4065A-SC advertises 64-byte bulk endpoints at high
> speed. USB 2.0 requires 512 bytes there, and xHCI uses 512. The device
> still sends 64-byte packets, so each packet ends the transfer and
> usbtmc_read() returns only the first one. The rest is read as the next
> reply:
>
> usbtmc 1-1.3:1.0: Device sent too small first packet: 8 < 12
> usbtmc 1-1.3:1.0: Device sent reply with wrong bTag: 4 != 6
>
> Read one packet per URB in usbtmc_read() on this device. Also check for
> a full first transfer before stripping the alignment bytes, otherwise a
> reply whose padding fills that transfer leaves its trailing ZLP behind.
> The existing 4096-byte path had the same problem.
>
> Fixes: d7604ff0dc01 ("usb: usbtmc: Optimize usbtmc_read")
> Cc: stable@vger.kernel.org
> Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261020-fix-usbtmc-short-packets-v1-0-903f4d029193@tipi-net.de?part=1
next prev parent reply other threads:[~2026-10-20 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 14:33 [PATCH 0/4] usb: usbtmc: fix undersized high-speed bulk packets on xHCI Nicolai Buchwitz
2026-10-20 14:33 ` [PATCH 1/4] usb: usbtmc: handle undersized high-speed bulk IN packets Nicolai Buchwitz
2026-10-20 14:46 ` sashiko-bot [this message]
2026-10-20 14:33 ` [PATCH 2/4] usb: usbtmc: handle undersized high-speed bulk OUT packets Nicolai Buchwitz
2026-10-20 14:39 ` sashiko-bot
2026-10-20 14:33 ` [PATCH 3/4] usb: usbtmc: add Rigol DP800 and DS1000Z to the packet I/O quirk table Nicolai Buchwitz
2026-10-20 14:41 ` sashiko-bot
2026-10-20 14:33 ` [PATCH 4/4] usb: usbtmc: send a ZLP after a full last packet in packet I/O mode Nicolai Buchwitz
2026-10-20 14:46 ` sashiko-bot
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-179189@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=nb@tipi-net.de \
--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