]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: rtl9300: introduce F_BUSY to the reg_fields struct
authorRustam Adilov <adilov@disroot.org>
Wed, 1 Apr 2026 18:06:43 +0000 (23:06 +0500)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 1 Apr 2026 22:09:11 +0000 (00:09 +0200)
commit55284a806b63a412846b9ecd3846f2639eaeaff4
treed44ac354c8a0a3a4d5a3ac476154c04a0bfda655
parent98773df61f8416594ac993e8464df596755ee1b8
i2c: rtl9300: introduce F_BUSY to the reg_fields struct

In RTL9607C i2c controller the busy check operation is done on the
separate bit of the command register as opposed to self clearing
command trigger bit on the rtl9300 and rtl9310 i2c controllers.

Introduce a new F_BUSY field to the reg_fields struct for that
and change the regmap read poll function to use F_BUSY
instead of I2C_TRIG.

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-4-adilov@disroot.org
drivers/i2c/busses/i2c-rtl9300.c