Browse Source

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>
Bin Liu 8 năm trước cách đây
mục cha
commit
a2f656060b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      drivers/usb/musb/musb_host.c

+ 4 - 0
drivers/usb/musb/musb_host.c

@@ -2152,6 +2152,10 @@ static int musb_schedule(
 				(USB_SPEED_HIGH == qh->dev->speed) ? 8 : 4;
 				(USB_SPEED_HIGH == qh->dev->speed) ? 8 : 4;
 		goto success;
 		goto success;
 	} else if (best_end < 0) {
 	} 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;
 		return -ENOSPC;
 	}
 	}