Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: qcom: fix missing optional irq warnings

Not all platforms have all of the four currently supported wakeup
interrupts so use the optional irq helpers when looking up interrupts to
avoid printing error messages when an optional interrupt is not found:

dwc3-qcom a6f8800.usb: error -ENXIO: IRQ hs_phy_irq not found

Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220713131340.29401-4-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
69bb3520 dd566fae

+2 -2
+2 -2
drivers/usb/dwc3/dwc3-qcom.c
··· 490 490 int ret; 491 491 492 492 if (np) 493 - ret = platform_get_irq_byname(pdev_irq, name); 493 + ret = platform_get_irq_byname_optional(pdev_irq, name); 494 494 else 495 - ret = platform_get_irq(pdev_irq, num); 495 + ret = platform_get_irq_optional(pdev_irq, num); 496 496 497 497 return ret; 498 498 }