]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: designware: Add dedicated algorithm for AMD NAVI
authorBenoît Monin <benoit.monin@bootlin.com>
Wed, 26 Nov 2025 10:46:27 +0000 (11:46 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 16 Dec 2025 23:37:24 +0000 (00:37 +0100)
commit6a28174326289834c6767bdeb1ba348aa9831e91
tree4ddfdd249e7a51eaa2c30ebeb0a89545209ad6ec
parentea032b451134e5cc79ed1affc9a237ce5bdda9ed
i2c: designware: Add dedicated algorithm for AMD NAVI

Apart from runtime PM, there is nothing in common between i2c_dw_xfer()
and amd_i2c_dw_xfer_quirk(), so give AMD NAVI controller its own algorithm
instead of calling the quirk from i2c_dw_xfer().

Add runtime PM handling to amd_i2c_dw_xfer_quirk() and a dedicated
i2c_algorithm for AMD NAVI controllers. The adapter algorithm is set
during probe based on the device model.

This way we avoid checking for the device model at the start of every
transfer.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20251126-i2c-dw-v4-4-b0654598e7c5@bootlin.com
drivers/i2c/busses/i2c-designware-master.c