Re: [PATCH] usb: dwc2: Register interrupt handler only once gadget is correctly initialized

From: Sergei Shtylyov
Date: Thu Feb 05 2015 - 13:04:51 EST


Hello.

On 02/05/2015 08:47 PM, Romain Perier wrote:

Don't register interrupt handler becore usb gadget is correctly initialized.

s/becore/before/?

For some embedded platforms which don't have a usb-phy it crashes the driver
because an interrupt is emitted with non-initiliazed hardware.

s/non-initiliazed/non-initialized/.

According to devm_request_irq documentation, an interrupt can be emitted
at any time once the interrupt is registered, so we have to care about driver
and hardware initialization.

Signed-off-by: Romain Perier <romain.perier@xxxxxxxxx>

[...]

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/