提交 1417a2b4 编写于 作者: J Johan Hovold 提交者: Zheng Zengkai

usb: dwc3: qcom: fix missing optional irq warnings

stable inclusion
from stable-v5.10.137
commit 4ab5662cc3cecb20b0f61389ba2f606ae4f5a3ad
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4ab5662cc3cecb20b0f61389ba2f606ae4f5a3ad

--------------------------------

[ Upstream commit 69bb3520 ]

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>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
上级 dcab05f2
...@@ -443,9 +443,9 @@ static int dwc3_qcom_get_irq(struct platform_device *pdev, ...@@ -443,9 +443,9 @@ static int dwc3_qcom_get_irq(struct platform_device *pdev,
int ret; int ret;
if (np) if (np)
ret = platform_get_irq_byname(pdev_irq, name); ret = platform_get_irq_byname_optional(pdev_irq, name);
else else
ret = platform_get_irq(pdev_irq, num); ret = platform_get_irq_optional(pdev_irq, num);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册