usb: musb: musb_cppi41: Defer probe only if DMA is not ready
authorAlexandre Bailon <abailon@baylibre.com>
Fri, 16 Jun 2017 15:40:54 +0000 (10:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jun 2017 03:45:01 +0000 (11:45 +0800)
commita70df14602b33f645d1eb69aad536ec29457a006
treea4edc22112bf7019f470649fbdffac492df1c7b3
parent24040a58379e2f2fa6aa9466911b758073b6bdfa
usb: musb: musb_cppi41: Defer probe only if DMA is not ready

If dma_request_slave_channel() failed to return a channel,
then the driver will print an error and request to defer probe,
regardless of the cause of the failure.
Defer if the DMA is not ready yet otherwise print an error.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_cppi41.c