diff options
author | Bin Liu <b-liu@ti.com> | 2017-08-24 11:38:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 10:51:55 +0200 |
commit | a2f656060b88241a22afb5927e433a126f1e151e (patch) | |
tree | 9961059474cab26e8375c3b015594dadc65fc350 /drivers/usb/musb | |
parent | 0ccbadafb4130407dc594395577e9e40f5b03ad6 (diff) | |
download | linux-stable-a2f656060b88241a22afb5927e433a126f1e151e.tar.gz linux-stable-a2f656060b88241a22afb5927e433a126f1e151e.tar.bz2 linux-stable-a2f656060b88241a22afb5927e433a126f1e151e.zip |
usb: musb: print an error message when hwep alloc failed
Print an error message with qh maxpacket size and hb_mult when hwep
allocation failed, so we have a better idea why it is failed.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 3344ffd5bb13..605167d81676 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -2152,6 +2152,10 @@ static int musb_schedule( (USB_SPEED_HIGH == qh->dev->speed) ? 8 : 4; goto success; } else if (best_end < 0) { + dev_err(musb->controller, + "%s hwep alloc failed for %dx%d\n", + musb_ep_xfertype_string(qh->type), + qh->hb_mult, qh->maxpacket); return -ENOSPC; } |