UPSTREAM: usb: dwc3: core: cleanup IRQ resources
authorRoger Quadros <rogerq@ti.com>
Fri, 10 Jun 2016 11:48:38 +0000 (14:48 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit32bfb1dd890ae8a9328d22dfb9eff0a0f1b8245d
tree240ed7c9d3a16794f05138f6741f800735f63169
parent60a24e9f08d5c3758f604a26fff7096ffd4c0fcd
UPSTREAM: 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.

Change-Id: Idb47d85ceee3353a219e4a9793942c7e92a6a6eb
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit 9522def40065194aa75b0a7b7e1ff5b8e2014724)

Conflicts:
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/host.c