You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
usb: dwc3: qcom: fix missing optional irq warnings
[ Upstream commit69bb3520db] 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:a4333c3a6b("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d376ca6716
commit
4ab5662cc3
@@ -443,9 +443,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user