Re: [PATCH v3] iio: light: stk3310: Deal with the ps interrupt issue in PM
From: Andy Shevchenko
Date: Wed Apr 29 2026 - 05:03:40 EST
On Wed, Apr 29, 2026 at 03:14:02PM +0800, Miao Li wrote:
> On the Inspur HS326 laptop(which integrated with HiSilicon M900
'...laptop (which...'
> processor), if the STK3311-X chip's PS interrupt is configured
> in "Recommended interrupt mode", the interrupt cannot be triggered
> normally after waking from suspend or hibernation.
>
> In this case, neither disabling and re-enabling the interrupt nor
> resetting the PS threshold register can restore the interrupt to
> normal operation.
>
> If the interrupt is disabled in suspend() then reset the PS threshold
> register and enable the interrupt in resume(). This resolves the issue.
...
> + if (state == false)
> + data->ps_int_enabled = false;
> + else
> + data->ps_int_enabled = true;
data->ps_int_enabled = state;
--
With Best Regards,
Andy Shevchenko