From c773c254197bd5775b1d0efe5254727d3f2a8481 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 13 May 2009 18:04:51 +0000 Subject: [PATCH] Add debug lines for fullspeed and highspeed xfer completion. Submitted by: Hans Petter Selasky --- sys/dev/usb/controller/ehci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/usb/controller/ehci.c b/sys/dev/usb/controller/ehci.c index 74539f575043..9bb9304ab2d6 100644 --- a/sys/dev/usb/controller/ehci.c +++ b/sys/dev/usb/controller/ehci.c @@ -2028,6 +2028,8 @@ ehci_isoc_fs_done(ehci_softc_t *sc, struct usb2_xfer *xfer) len = EHCI_SITD_GET_LEN(status); + DPRINTFN(2, "status=0x%08x, rem=%u\n", status, len); + if (*plen >= len) { len = *plen - len; } else { @@ -2081,6 +2083,8 @@ ehci_isoc_hs_done(ehci_softc_t *sc, struct usb2_xfer *xfer) len = EHCI_ITD_GET_LEN(status); + DPRINTFN(2, "status=0x%08x, len=%u\n", status, len); + if (*plen >= len) { /* * The length is valid. NOTE: The complete