diff options
author | Stefan Lengfeld <[email protected]> | 2020-01-20 10:36:50 +0100 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2020-02-26 11:06:42 +0100 |
commit | 3a5ee18d2a32bda6b9a1260136f6805848e3839d (patch) | |
tree | 3982aa2c6c75043c1f3e97c74d55891a0af5c465 /scripts/bpf_helpers_doc.py | |
parent | d3d3fdcc4c90fed42b400999721a5b535a310533 (diff) |
i2c: imx: implement master_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
and not call schedule(), e.g. via a sleep routine, in these cases.
With this patch the driver supports normal operation, DMA transfers and
now the polling mode or also called sleep-free or IRQ-less operation. It
makes the code not simpler or easier to read, but atomic I2C transfers
are needed on some hardware configurations, e.g. to trigger reboots on
an external PMIC chip.
Signed-off-by: Stefan Lengfeld <[email protected]>
[[email protected]: integrate https://patchwork.ozlabs.org/patch/1085943/ review feedback]
[[email protected]: adapt commit message]
Signed-off-by: Marco Felsch <[email protected]>
Acked-by: Oleksij Rempel <[email protected]>
Reviewed-by: Stefan Agner <[email protected]>
Tested-by: Stefan Lengfeld <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions