[PATCH 3/3] gpio: brcmstb: allow parent_irq to wake
Andy Shevchenko
andy.shevchenko at gmail.com
Mon Jan 26 08:26:58 PST 2026
On Thu, Jan 22, 2026 at 9:24 PM Florian Fainelli
<florian.fainelli at broadcom.com> wrote:
> On 1/21/2026 11:42 PM, Andy Shevchenko wrote:
> > On Thu, Jan 22, 2026 at 3:06 AM Florian Fainelli
> > <florian.fainelli at broadcom.com> 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
More information about the linux-arm-kernel
mailing list