media: usb: hdpvr: disable zero-length read messages
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 22 May 2025 08:09:54 +0000 (10:09 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 17 Jun 2025 08:35:14 +0000 (10:35 +0200)
commitb5ae5a79825ba8037b0be3ef677a24de8c063abf
tree6a2489b65527411c8d2362f90eda401788c791ba
parent75f278ab52c6748d5ea14a0dca46bd007a8b0871
media: usb: hdpvr: disable zero-length read messages

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>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/hdpvr/hdpvr-i2c.c