Re: [PATCH 3/3] gpio: brcmstb: allow parent_irq to wake

From: Andy Shevchenko

Date: Mon Jan 26 2026 - 11:29:45 EST


On Thu, Jan 22, 2026 at 9:24 PM Florian Fainelli
<florian.fainelli@xxxxxxxxxxxx> wrote:
> On 1/21/2026 11:42 PM, Andy Shevchenko wrote:
> > On Thu, Jan 22, 2026 at 3:06 AM Florian Fainelli
> > <florian.fainelli@xxxxxxxxxxxx> wrote:

...

> >> + if (priv->suspended && bank->wake_active & (u32)status) {
> >
> > Why casting?
>
> status is an unsigned long, which is what for_each_set_bit() expects, so
> it is intended here to ensure the top bits are not participating in the
> comparison, I think this is just being extra explicit with intent here.

Isn't that guaranteed by the C standard?

> >> + priv->suspended = false;
> >> + pm_wakeup_event(&priv->pdev->dev, 0);
> >> + }


--
With Best Regards,
Andy Shevchenko