usb: musb: cppi41: allow to defer probing if DMA isn't yet available
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 16 Oct 2013 10:50:08 +0000 (12:50 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Oct 2013 16:32:08 +0000 (11:32 -0500)
commit4805414705df77d946b41df4f8b315e2b089eec4
tree6473991e3baed083623eea274af5472327347cea
parent8d1aad7485e653c2c5fd985b326096f680f7d918
usb: musb: cppi41: allow to defer probing if DMA isn't yet available

If everything (musb, cppi41, phy) is built-in then musb will start
without the dma engine printing only

|musb-hdrc musb-hdrc.0.auto: Falied to request rx1.

The reason for this is that the musb device structs are created & probed
before those of the cppi41 device. So the cppi41 device is probed too
late.
As a workaround for this allow the musb_cppi41 part to defer the probe
if everything is fine except for the missing DMA controller. In case of
another error we continue.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_cppi41.c