Re: [PATCH v4 4/9] i2c: atr: do not create mapping in detach_addr()

Luca Ceresoli
2025-04-30T14:33:30Z

On Mon, 28 Apr 2025 13:25:09 +0300
Cosmin Tanislav <demonsingur@gmail.com> wrote:

> It is useless to create a new mapping just to detach it immediately.
>
> Use the newly added i2c_atr_find_mapping_by_addr() function to avoid it,
> and exit without logging an error if not found.
>
> Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>

Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering