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

Bui Duc Phuc <[email protected]>
Newsgroups org.kernel.vger.linux-kernel,org.kernel.vger.linux-tegra,org.kernel.vger.linux-usb
Message-ID <CAABR9nGBLoRdHUp_a35E-ASa6RzMu=z8GXDjPYw-ptAPfZ94kg@mail.gmail.com>
Hi Greg,

Thank you for your feedback.

>
> As before, how was this found and tested?
>

I found this during code inspection while cleaning up probe functions in
the Rockchip ASoC drivers.

https://lore.kernel.org/all/[email protected]/

platform_get_irq_optional() returns a positive IRQ number on success or
a negative error code on failure, including -EPROBE_DEFER. The driver
handled positive IRQ numbers but ignored -EPROBE_DEFER, continuing
probe without an IRQ instead of deferring.

I only compile-tested the change. I don't have the hardware to test this
path at runtime.

Best regards,
Phuc
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.