Re: [PATCH v3 02/10] i2c: core: fix hang on adapter registration failure

From: Wolfram Sang

Date: Wed Jun 03 2026 - 05:20:59 EST


On Mon, May 11, 2026 at 04:37:07PM +0200, Johan Hovold wrote:
> Clients may be registered from bus notifier callbacks when the adapter
> is registered. On a subsequent error during registration, the adapter
> references taken by such clients prevent the wait for the references to
> be released from ever completing.
>
> Fix this by refactoring client deregistration and deregistering also on
> late adapter registration failures.
>
> Fixes: f8756c67b3de ("i2c: core: call of_i2c_setup_smbus_alert in i2c_register_adapter")
> Cc: stable@xxxxxxxxxxxxxxx # 4.15
> Cc: Phil Reid <preid@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>

Until tomorrow noon latest, I will have all patches reviewed.

Attachment: signature.asc
Description: PGP signature