[PATCH v2 6/6] irqchip/gic-v5: Enable GICv5 IWB ACPI probe ordering detection

Rafael J. Wysocki (Intel) rafael at kernel.org
Tue Jun 30 03:55:05 PDT 2026


On Tue, Jun 30, 2026 at 12:51 PM Lorenzo Pieralisi
<lpieralisi at kernel.org> wrote:
>
> On Mon, Jun 08, 2026 at 07:18:15PM +0200, Rafael J. Wysocki wrote:
>
> [...]
>
> > > +#ifdef CONFIG_ACPI
> > > +       if (has_acpi_companion(&pdev->dev))
> > > +               acpi_dev_clear_dependencies(ACPI_COMPANION(&pdev->dev));
> > > +#endif
> >
> > I would rather add a wrapper for this, along with an empty stub for
> > the !CONFIG_ACPI case.
>
> #ifdef CONFIG_ACPI
> static inline void acpi_device_clear_dep(struct device *dev)
> {
>         if (has_acpi_companion(dev))
>                 acpi_dev_clear_dependencies(ACPI_COMPANION(dev));
>
> }
> #else
> static inline void acpi_device_clear_dep(struct device *dev) {}
> #endif
>
> Something like that ?

Yup.



More information about the linux-arm-kernel mailing list