[PATCH v1] i2c: lpi2c: implement master_xfer_atomic callback
Andi Shyti
andi.shyti at kernel.org
Wed May 14 08:14:32 PDT 2025
Hi Francesco and Emanuele,
On Wed, Mar 19, 2025 at 03:51:14PM +0100, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli at toradex.com>
>
> Rework the read and write code paths in the driver to support operation
> in atomic contexts. To achieve this, the driver must not rely on IRQs
> or perform any scheduling, e.g., via a sleep or schedule routine. Even
> jiffies do not advance in atomic contexts, so timeouts based on them
> are substituted with delays.
>
> Implement atomic, sleep-free, and IRQ-less operation. This increases
> complexity but is necessary for atomic I2C transfers required by some
> hardware configurations, e.g., to trigger reboots on an external PMIC chip.
>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli at toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
this patch is causing a build regression. I'm going to revert it,
please check the test report that has been reported and you are
cc'ed.
Andi
More information about the linux-arm-kernel
mailing list