]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: core: cleanup IRQ resources
authorRoger Quadros <rogerq@ti.com>
Fri, 10 Jun 2016 11:48:38 +0000 (14:48 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:53:22 +0000 (10:53 +0300)
commit8a3d5dc892120fa06dbdac06bc6d71e04aef6297
tree98865d3e1b58cc4df5880d685643b8eab3d0f0c0
parent015529b78f50c6b54e5c9b9cff5ca1c52ded89e9
usb: dwc3: core: cleanup IRQ resources

Implementations might use different IRQs for
host, gadget so use named interrupt resources
to allow device tree to specify the interrupts.

Following are the interrupt names

Peripheral Interrupt - peripheral
HOST Interrupt - host

Maintain backward compatibility for a single named
interrupt ("dwc3_usb3") for all interrupts as well as
unnamed interrupt at index 0 for all interrupts.

As platform_get_irq() variants are used, tackle
the -EPROBE_DEFER case as well.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/host.c