diff options
author | Bin Liu <b-liu@ti.com> | 2017-08-24 11:38:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 10:51:55 +0200 |
commit | 1bff25eafa451c6210d6dfdff63e39c55c96a3e3 (patch) | |
tree | 8e5c87efc3c74587e72dfab7fb2551f24fdb6fe5 | |
parent | a2f656060b88241a22afb5927e433a126f1e151e (diff) | |
download | op-kernel-dev-1bff25eafa451c6210d6dfdff63e39c55c96a3e3.zip op-kernel-dev-1bff25eafa451c6210d6dfdff63e39c55c96a3e3.tar.gz |
usb: musb: print an error message when high bandwidth is unsupported
There are multiple places in usb core or controller driver which returns
-EMSGSIZE when a class driver queueing urb failed, so the "Message too
long" log doesn't help much for understanding the error.
Let the musb driver to specifically print a error message when
musb_urb_enqueue() returns -EMSGSIZE.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 605167d..b17450a 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -2248,6 +2248,10 @@ static int musb_urb_enqueue( ok = (usb_pipein(urb->pipe) && musb->hb_iso_rx) || (usb_pipeout(urb->pipe) && musb->hb_iso_tx); if (!ok) { + dev_err(musb->controller, + "high bandwidth %s (%dx%d) not supported\n", + musb_ep_xfertype_string(qh->type), + qh->hb_mult, qh->maxpacket & 0x7ff); ret = -EMSGSIZE; goto done; } |