]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Update common interrupt handler to call gadget interrupt handler
authorDinh Nguyen <dinguyen@opensource.altera.com>
Tue, 11 Nov 2014 17:13:37 +0000 (11:13 -0600)
committerFelipe Balbi <balbi@ti.com>
Fri, 14 Nov 2014 20:59:48 +0000 (14:59 -0600)
commitaa627d2a9460fa291194df9f695dc9f6ba098643
treeb946656ed7c79139b44289ddc876f62d6f47d254
parent3b97d99d28aa81d62fe40251d2034224b8a2109f
usb: dwc2: Update common interrupt handler to call gadget interrupt handler

Make dwc2_handle_common_intr call the gadget interrupt function when operating
in peripheral mode. Remove the spinlock functions in s3c_hsotg_irq as
dwc2_handle_common_intr() already has the spinlocks.

Move the registeration of the IRQ to common code for platform and PCI.

Remove duplicate interrupt conditions that was in gadget, as those are handled
by dwc2 common interrupt handler.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/gadget.c
drivers/usb/dwc2/pci.c
drivers/usb/dwc2/platform.c