Re: [PATCH 3/3] platform/x86: intel_scu_ipc: Handle errors from optional IRQ lookup

From: Andy Shevchenko

Date: Mon Aug 10 2026 - 03:09:04 EST


On Mon, Aug 10, 2026 at 8:26 AM <phucduc.bui@xxxxxxxxx> wrote:

> platform_get_irq_optional() can return errors such as -EPROBE_DEFER,
> but the driver currently stores the return value directly in
> scu_data.irq and continues probing.
>
> Propagate negative errors other than -ENXIO using dev_err_probe(), and
> only assign the IRQ to scu_data.irq when a valid IRQ number is
> returned.

You haven't read the code, have you?
Check the implementation of __intel_scu_ipc_register() in
drivers/platform/x86/intel_scu_ipc.c and act accordingly.

--
With Best Regards,
Andy Shevchenko