[PATCH 01/14] gpio: pca953x: move suspend/resume to suspend_noirq/resume_noirq

Linus Walleij linus.walleij at linaro.org
Thu Feb 8 13:29:11 PST 2024


On Thu, Feb 8, 2024 at 5:19 PM Thomas Richard
<thomas.richard at bootlin.com> wrote:
> On 1/28/24 01:12, Linus Walleij wrote:

> > I guess you could define both pca953x_suspend() and
> > pca953x_suspend_noirq() and selectively bail out on one
> > path on some systems?
>
> Yes.
>
> What do you think if I use a property like for example "ti,pm-noirq" to
> select the right path ?
> Is a property relevant for this use case ?

That's a Linux-specific property and that's useless for other operating
systems and not normally allowed. PM noirq is just some Linux thing.

*FIRST* we should check if putting the callbacks to noirq is fine with
other systems too, and I don't see why not. Perhaps we need to even
merge it if we don't get any test results.

If it doesn't work we can think of other options.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list