OSDN Git Service

usb: musb: Fix deferred probing
authorZhu Wang <wangzhu9@huawei.com>
Fri, 4 Aug 2023 10:54:30 +0000 (18:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:45:58 +0000 (14:45 +0200)
commitadbe9720e573d0466b506df3b848bcf4c4dd63c9
treee5728067402484671fde5d681959d447453ee230
parent98a9e32bdf2525073fdfbdcc520d5c798a7375e5
usb: musb: Fix deferred probing

When platform_get_irq_byname() 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/20230804105430.95773-1-wangzhu9@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c