Thread (13 messages) 13 messages, 4 authors, 2021-08-13

Re: [PATCH 2/9] usb: dwc3: qcom: add IRQ check

From: Felipe Balbi <balbi@kernel.org>
Date: 2021-08-09 10:07:32
Also in: linux-arm-msm

Sergey Shtylyov [off-list ref] writes:
In dwc3_qcom_acpi_register_core(), the driver neglects to check the result
of platform_get_irq()'s call and blithely assigns the negative error codes
to the allocated child device's IRQ resource and then passing this resource
to platform_device_add_resources() and later causing dwc3_otg_get_irq() to
fail anyway.  Stop calling platform_device_add_resources() with the invalid
IRQ #s, so that there's less complexity in the IRQ error checking.

Fixes: 2bc02355f8ba ("usb: dwc3: qcom: Add support for booting with ACPI")
Signed-off-by: Sergey Shtylyov <redacted>
Acked-by: Felipe Balbi <balbi@kernel.org>

-- 
balbi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help