mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
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>
This commit is contained in:
parent
a2f656060b
commit
1bff25eafa
1 changed files with 4 additions and 0 deletions
|
@ -2248,6 +2248,10 @@ static int musb_urb_enqueue(
|
||||||
ok = (usb_pipein(urb->pipe) && musb->hb_iso_rx)
|
ok = (usb_pipein(urb->pipe) && musb->hb_iso_rx)
|
||||||
|| (usb_pipeout(urb->pipe) && musb->hb_iso_tx);
|
|| (usb_pipeout(urb->pipe) && musb->hb_iso_tx);
|
||||||
if (!ok) {
|
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;
|
ret = -EMSGSIZE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue