]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: rtl9300: split data_reg into read and write reg
authorRustam Adilov <adilov@disroot.org>
Wed, 1 Apr 2026 18:06:41 +0000 (23:06 +0500)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 1 Apr 2026 22:09:02 +0000 (00:09 +0200)
commit4c53b2eb4f18102c36d4bcaf8c604a1825701ffb
tree61ae443c4238344ec6d43edba2db28eb7f4e4b08
parent879766b58ea5cba79ff5fe46f062ed8e05e715aa
i2c: rtl9300: split data_reg into read and write reg

In RTL9607C i2c controller, there are 2 separate registers for reads
and writes as opposed the combined 1 on rtl9300 and rtl9310.

In preparation for RTL9607C support, split it up into rd_reg and wd_reg
properties and change the i2c read and write functions accordingly.

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