]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: rtl9300: introduce max length property to driver data
authorRustam Adilov <adilov@disroot.org>
Wed, 1 Apr 2026 18:06:42 +0000 (23:06 +0500)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 1 Apr 2026 22:09:06 +0000 (00:09 +0200)
commit98773df61f8416594ac993e8464df596755ee1b8
treee2dc440d1bc847447f808a353d178109c526e0f3
parent4c53b2eb4f18102c36d4bcaf8c604a1825701ffb
i2c: rtl9300: introduce max length property to driver data

In RTL9607C i2c controller, theoretical maximum the data length
can be is 4 bytes as opposed to 16 bytes on rtl9300 and rtl9310.

Introduce a new property to the driver data struct for that.
Adjust if statement in prepare_xfer function to follow that new
property instead of the hardcoded value.

Signed-off-by: Rustam Adilov <adilov@disroot.org>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260401180648.337834-3-adilov@disroot.org
drivers/i2c/busses/i2c-rtl9300.c