]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: riic: Allow setting frequencies lower than 50KHz
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 23 Sep 2025 14:18:26 +0000 (17:18 +0300)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 23 Sep 2025 19:14:53 +0000 (21:14 +0200)
commitdde9a38195b0c268ff55d3a8aa62faefd0e988c8
treec4d274c9a80ec5de20e4354a2cb48dd661664f45
parent2f6aa0acdc5d09d1fee3049593c81affa9c58838
i2c: riic: Allow setting frequencies lower than 50KHz

The MR1.CKS field is 3 bits wide and all the possible values (from 0 to
7) are valid. This is true for all the SoCs currently integrated in
upstream Linux. Take into account CKS=7 which allows setting bus
frequencies lower than 50KHz. This may be useful at least for debugging.

Fixes: d982d6651419 ("i2c: riic: remove clock and frequency restrictions")
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/busses/i2c-riic.c