mbox series

[0/2] media: usb: hdpvr: make use of quirk flags from I2C core

Message ID 20250522065519.4138-4-wsa+renesas@sang-engineering.com
Headers show
Series media: usb: hdpvr: make use of quirk flags from I2C core | expand

Message

Wolfram Sang May 22, 2025, 6:55 a.m. UTC
We found a pattern that could create USB protocol violations for devices
which embed an I2C bus and use I2C message lengths directly. Patch 1
fixes the bug for this driver by using a quirk flag. Patch 2 is a
cleanup to remove a pattern in the driver which can also be handled with
a quirk flag.

Wolfram Sang (2):
  media: usb: hdpvr: disable zero-length read messages
  media: usb: hdpvr: use I2C core to handle only supported messages

 drivers/media/usb/hdpvr/hdpvr-i2c.c | 29 ++++++++---------------------
 1 file changed, 8 insertions(+), 21 deletions(-)