OSDN Git Service

usb: gadget: udc: gr_udc: Fix deferred probing
authorZhu Wang <wangzhu9@huawei.com>
Fri, 4 Aug 2023 11:00:05 +0000 (19:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:46:24 +0000 (14:46 +0200)
commit4f4bda58c5aef66493f9878463c3f28502653067
tree765b99f9fffe21e32bba8d68eaa7655c3430a413
parentd3af2f4c0434f3dde7f921f52614af81787bbec6
usb: gadget: udc: gr_udc: Fix deferred probing

When platform_get_irq() fails, it may return -EPROBE_DEFER, which
suggested deferred probing, it is very important to propagate it
upstream. We cannot override it with other error code.

Commit ce753ad1549c ("platform: finally disallow IRQ0 in
platform_get_irq() and its ilk") makes sure IRQ0 is not returned.

Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
Link: https://lore.kernel.org/r/20230804110005.97061-1-wangzhu9@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/gr_udc.c