Re: [PATCH v2 7/9] usb: phy: fsl-usb: add IRQ check

2021-08-11 Thread Felipe Balbi
Sergey Shtylyov writes: > The driver neglects to check the result of platform_get_irq()'s call and > blithely passes the negative error codes to request_irq() (which takes > *unsigned* IRQ #), causing it to fail with -EINVAL, overriding an original > error code. Stop calling request_irq() with

[PATCH v2 7/9] usb: phy: fsl-usb: add IRQ check

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