[PATCH 6/7] platform: arm64: lenovo-yoga-c630: Disable the EC interrupt while suspended

Dmitry Baryshkov dmitry.baryshkov at oss.qualcomm.com
Wed Nov 11 04:57:45 PST 2026


On Wed, Nov 11, 2026 at 12:53:10PM +0100, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb at kernel.org>
> 
> The EC interrupt handler reads the pending event from the EC over I2C. If
> the interrupt fires while the system is suspending or resuming, between
> the late suspend and early resume phases of the I2C controller, the
> transfer fails, as runtime PM is disabled for the controller:
> 
>   geni_i2c 884000.i2c: error turning SE resources:-13
> 
> The handler then returns without having read the event, and as the
> interrupt is level triggered, it fires again right away. On the Yoga C630,
> this shows up as tens to thousands of these errors in about half of the
> suspends.
> 
> So disable the EC interrupt when suspending, and enable it again when
> resuming. Pending events are then handled once the I2C controller can be
> used again.
> 
> Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
> ---
>  drivers/platform/arm64/lenovo-yoga-c630.c | 34 +++++++++++++++++++-
>  1 file changed, 33 insertions(+), 1 deletion(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at oss.qualcomm.com>


-- 
With best wishes
Dmitry



More information about the linux-arm-kernel mailing list