[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ay6kzvpilixtbiki4z7splkvp3dukhocuxlpmawcrakzdrwedj@qmgb5aiv5ud7>
Date: Mon, 12 May 2025 23:21:56 +0200
From: Andi Shyti <andi.shyti@...nel.org>
To: Francesco Dolcini <francesco@...cini.it>
Cc: Dong Aisheng <aisheng.dong@....com>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>, Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, Emanuele Ghidoli <emanuele.ghidoli@...adex.com>,
linux-i2c@...r.kernel.org, imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, Francesco Dolcini <francesco.dolcini@...adex.com>,
Carlos Song <carlos.song@....com>
Subject: Re: [PATCH v2] i2c: lpi2c: implement master_xfer_atomic callback
Hi Francesco,
On Fri, May 09, 2025 at 04:09:49PM +0200, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@...adex.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@...adex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@...adex.com>
> Reviewed-by: Carlos Song <carlos.song@....com>
merged to i2c/i2c-host.
Thanks and thanks Carlos for your review!
Andi
Powered by blists - more mailing lists