Re: [PATCH v4 1/3] iio: light: stk3310: Deal with the ps interrupt issue in PM

From: Andy Shevchenko

Date: Tue May 05 2026 - 02:53:54 EST


On Mon, May 04, 2026 at 11:04:06AM +0800, Miao Li wrote:

> On the Inspur HS326 laptop(which integrated with HiSilicon M900
> 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.

Like Jonathan said, this should be a fix, otherwise the ordering
of the patches in the series is wrong (and this should be actually
the last one in the series).

--
With Best Regards,
Andy Shevchenko