usb: dwc2/gadget: delay enabling irq once hardware is configured properly
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 9 Sep 2014 08:44:12 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2014 17:17:48 +0000 (10:17 -0700)
commiteb3c56c5ccdd252940cb0ec0541fcdc94894bd8d
treeb135a01110e9de6fe5c919f8909ecd7742561d05
parentb510df5a36c066da3a188f4ade3404118b63c6de
usb: dwc2/gadget: delay enabling irq once hardware is configured properly

This patch fixes kernel panic/interrupt storm/etc issues if bootloader
left s3c-hsotg module in enabled state. Now interrupt handler is enabled
only after proper configuration of hardware registers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Cc: stable <stable@vger.kernel.org> # 3.16
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c