提交 69bb3520 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

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: a4333c3a ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Reviewed-by: NAndrew Halaney <ahalaney@redhat.com>
Signed-off-by: NJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220713131340.29401-4-johan+linaro@kernel.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 dd566fae
......@@ -490,9 +490,9 @@ static int dwc3_qcom_get_irq(struct platform_device *pdev,
int ret;
if (np)
ret = platform_get_irq_byname(pdev_irq, name);
ret = platform_get_irq_byname_optional(pdev_irq, name);
else
ret = platform_get_irq(pdev_irq, num);
ret = platform_get_irq_optional(pdev_irq, num);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册