]> 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)
commitceb45ebbd3a6763f8854d2c9b16b937c91fd77d1
tree98865d3e1b58cc4df5880d685643b8eab3d0f0c0
parentbaa7926f49050d693a23a92269ea40f30a8cc794
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