Re: [PATCH] i2c: spacemit: request IRQ after controller initialization
From: Troy Mitchell
Date: Wed Jul 22 2026 - 21:35:04 EST
On Wed Jul 22, 2026 at 2:43 AM PDT, Linmao Li wrote:
> spacemit_i2c_probe() requests the IRQ before it enables the clocks, resets
> the controller and runs init_completion(). If an interrupt is already
> pending, the handler runs too early: it reads registers while the clocks
> are still off and calls complete() on an uninitialized completion. Request
> the IRQ after the controller and completion are initialized, but still
> before the adapter is registered.
>
> Fixes: 5ea558473fa3 ("i2c: spacemit: add support for SpacemiT K1 SoC")
> Signed-off-by: Linmao Li <lilinmao@xxxxxxxxxx>
Reviewed-by: Troy Mitchell <troy.mitchell@xxxxxxxxxxxxxxxxxx>
This should also be applied to the stable trees. Please add:
Cc: stable@xxxxxxxxxxxxxxx # v6.15+
- Troy