Re: [PATCH] usb: xhci: tegra: Propagate -EPROBE_DEFER from IRQ lookup

Greg Kroah-Hartman <[email protected]> Thu, 6 Aug 2026 09:03:05 +0200
Newsgroups org.kernel.vger.linux-tegra,org.kernel.vger.linux-kernel,org.kernel.vger.linux-usb
Message-ID <2026080654-glass-swiftness-7068@gregkh>
On Thu, Aug 06, 2026 at 01:39:33PM +0700, [email protected] wrote:
> From: bui duc phuc <[email protected]>
> 
> 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 <[email protected]>
> ---
>  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