]> git.karo-electronics.de Git - linux-beck.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)
commit9522def40065194aa75b0a7b7e1ff5b8e2014724
tree98865d3e1b58cc4df5880d685643b8eab3d0f0c0
parentce15ed4c5dfb3f7757e6611902aed5db253af977
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