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

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-kernel,org.kernel.vger.linux-tegra,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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.