android_kernel_motorola_sm6375/drivers/i2c
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Wolfram Sang e34167aee4 i2c: tiny-usb: disable zero-length read messages
commit cbdb25ccf7566eee0c2b945e35cb98baf9ed0aa6 upstream.

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.

Fixes: e8c76eed2e ("i2c: New i2c-tiny-usb bus driver")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: <stable@vger.kernel.org> # v2.6.22+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250522064349.3823-2-wsa+renesas@sang-engineering.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-17 18:24:53 +02:00
..
algos
busses i2c: tiny-usb: disable zero-length read messages 2025-07-17 18:24:53 +02:00
muxes i2c: mux: demux-pinctrl: check initial mux selection, too 2025-02-01 18:18:50 +01:00
i2c-boardinfo.c
i2c-core-acpi.c
i2c-core-base.c i2c: smbus: fix NULL function pointer dereference 2024-05-02 16:18:37 +02:00
i2c-core-of.c
i2c-core-slave.c
i2c-core-smbus.c
i2c-core.h i2c: core: Fix atomic xfer check for non-preempt config 2024-01-15 18:25:27 +01:00
i2c-dev.c
i2c-mux.c i2c: mux: Avoid potential false error message in i2c_mux_add_adapter 2023-10-25 11:53:23 +02:00
i2c-slave-eeprom.c
i2c-smbus.c i2c: smbus: Send alert notifications to all devices if source not found 2024-08-19 05:33:50 +02:00
i2c-stub.c
Kconfig
Makefile