diff options
| author | Emanuele Ghidoli <[email protected]> | 2025-07-18 13:34:29 +0000 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2025-07-25 21:15:39 +0000 |
| commit | 85b9dd6e90b92f5cb7c47991421ceb4925ba2a87 (patch) | |
| tree | f1720eb8813e7bda43501a07942d28c22174076b /drivers/platform/x86/intel/pmt/class.c | |
| parent | i2c: lpi2c: use readl_poll_timeout() for register polling (diff) | |
| download | kernel-85b9dd6e90b92f5cb7c47991421ceb4925ba2a87.tar.gz kernel-85b9dd6e90b92f5cb7c47991421ceb4925ba2a87.zip | |
i2c: lpi2c: implement xfer_atomic callback
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.
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 <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Reviewed-by: Carlos Song <[email protected]>
Tested-by: Primoz Fiser <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
