Re: [PATCH] usb: xhci: tegra: Propagate -EPROBE_DEFER from IRQ lookup
From: Greg Kroah-Hartman
Date: Thu Aug 06 2026 - 03:04:50 EST
On Thu, Aug 06, 2026 at 01:39:33PM +0700, phucduc.bui@xxxxxxxxx wrote:
> From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>
> Return -EPROBE_DEFER from platform_get_irq_optional() so the driver is
> re-probed when the interrupt resource becomes available instead of
> continuing probe without an IRQ.
>
> Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
> ---
> drivers/usb/host/xhci-tegra.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
> index e7e6d569f1db..cb946eb7a65d 100644
> --- a/drivers/usb/host/xhci-tegra.c
> +++ b/drivers/usb/host/xhci-tegra.c
> @@ -1571,6 +1571,8 @@ static int tegra_xusb_setup_wakeup(struct platform_device *pdev, struct tegra_xu
> struct irq_data *data;
>
> tegra->wake_irqs[i] = platform_get_irq_optional(pdev, i + WAKE_IRQ_START_INDEX);
> + if (tegra->wake_irqs[i] == -EPROBE_DEFER)
> + return -EPROBE_DEFER;
> if (tegra->wake_irqs[i] < 0)
> break;
>
> --
> 2.43.0
>
>
As before, how was this found and tested?
thanks,
greg k-h