Home
last modified time | relevance | path

Searched hist:baa2986b (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/dwc3/
H A Ddwc3-meson-g12a.cbaa2986b Mon Aug 09 15:21:14 CDT 2021 Sergey Shtylyov <s.shtylyov@omp.ru> usb: dwc3: meson-g12a: add IRQ check

The driver neglects to check the result of platform_get_irq()'s call and
blithely passes the negative error codes to devm_request_threaded_irq()
(which takes *unsigned* IRQ #), causing it to fail with -EINVAL, overriding
an original error code. Stop calling devm_request_threaded_irq() with the
invalid IRQ #s.

Fixes: f90db10779ad ("usb: dwc3: meson-g12a: Add support for IRQ based OTG switching")
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/96106462-5538-0b2f-f2ab-ee56e4853912@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>