]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: xiic: Add atomic transfer support
authorManikanta Guntupalli <manikanta.guntupalli@amd.com>
Tue, 10 Dec 2024 09:52:42 +0000 (15:22 +0530)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 7 Jan 2025 22:46:10 +0000 (23:46 +0100)
commite22daca457d5bec579f62ba84e826a51c26cce31
tree8c571685b87eaf6eeb90160623c2131d30ea5692
parent2ee409c6a12d74cd1b16ca3690baa7d5ffffeb7d
i2c: xiic: Add atomic transfer support

Rework the read and write code paths in the driver to support operation
in atomic contexts.

Similar changes have been implemented in other drivers, including:
commit 3a5ee18d2a32 ("i2c: imx: implement master_xfer_atomic callback")
commit 445094c8a9fb ("i2c: exynos5: add support for atomic transfers")
commit ede2299f7101 ("i2c: tegra: Support atomic transfers")
commit fe402bd09049 ("i2c: meson: implement the master_xfer_atomic
callback")

Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20241210095242.1982770-3-manikanta.guntupalli@amd.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-xiic.c