From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: linux-i2c@vger.kernel.org
Cc: Alan Stern <stern@rowland.harvard.edu>,
Nikita Zhandarovich <n.zhandarovich@fintech.ru>,
Till Harbaum <till@harbaum.org>,
Andi Shyti <andi.shyti@kernel.org>
Subject: Re: [PATCH] i2c: tiny-usb: disable zero-length read messages
Date: Thu, 22 May 2025 09:00:12 +0200 [thread overview]
Message-ID: <aC7LfOYdq49yDsDt@shikoro> (raw)
In-Reply-To: <20250522064349.3823-2-wsa+renesas@sang-engineering.com>
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]
On Thu, May 22, 2025 at 08:43:49AM +0200, Wolfram Sang wrote:
> This driver passes the length of an i2c_msg directly to
> usb_control_msg(). If the message is now a read and of length 0, it
> violates the USB protocol and a warning will be printed. Enable the
> I2C_AQ_NO_ZERO_LEN_READ quirk for this adapter thus forbidding 0-length
> read messages altogether.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Fixes: e8c76eed2ecd ("i2c: New i2c-tiny-usb bus driver")
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-05-22 7:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 6:43 [PATCH] i2c: tiny-usb: disable zero-length read messages Wolfram Sang
2025-05-22 7:00 ` Wolfram Sang [this message]
2025-05-23 7:56 ` Andi Shyti
2025-05-23 8:16 ` Wolfram Sang
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=aC7LfOYdq49yDsDt@shikoro \
--to=wsa+renesas@sang-engineering.com \
--cc=andi.shyti@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=n.zhandarovich@fintech.ru \
--cc=stern@rowland.harvard.edu \
--cc=till@harbaum.org \
/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.