ChangeSet 1.1006.11.13, 2003/03/19 13:07:35-08:00, [EMAIL PROTECTED]

[PATCH] USB: ehci-hcd, prink tweaks

A not-very interesting patch, it just cleans up
some debug output.


 drivers/usb/host/ehci-dbg.c |    6 +++---
 drivers/usb/host/ehci-hcd.c |   15 ++++++++-------
 2 files changed, 11 insertions(+), 10 deletions(-)


diff -Nru a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
--- a/drivers/usb/host/ehci-dbg.c       Thu Mar 27 16:02:02 2003
+++ b/drivers/usb/host/ehci-dbg.c       Thu Mar 27 16:02:02 2003
@@ -127,10 +127,10 @@
 static void __attribute__((__unused__))
 dbg_qh (char *label, struct ehci_hcd *ehci, struct ehci_qh *qh)
 {
-       dbg ("%s %p info1 %x info2 %x hw_curr %x qtd_next %x", label,
-               qh, qh->hw_info1, qh->hw_info2,
+       dbg ("%s %p n%08x info1 %x info2 %x hw_curr %x qtd_next %x", label,
+               qh, qh->hw_next, qh->hw_info1, qh->hw_info2,
                qh->hw_current, qh->hw_qtd_next);
-       dbg ("  alt+errs= %x, token= %x, page0= %x, page1= %x",
+       dbg ("  alt+nak+t= %x, token= %x, page0= %x, page1= %x",
                qh->hw_alt_next, qh->hw_token,
                qh->hw_buf [0], qh->hw_buf [1]);
        if (qh->hw_buf [2]) {
diff -Nru a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
--- a/drivers/usb/host/ehci-hcd.c       Thu Mar 27 16:02:02 2003
+++ b/drivers/usb/host/ehci-hcd.c       Thu Mar 27 16:02:02 2003
@@ -578,7 +578,7 @@
        int                     ports;
        int                     i;
 
-       dbg ("%s: suspend to %d", hcd_to_bus (hcd)->bus_name, state);
+       ehci_dbg (ehci, "suspend to %d\n", state);
 
        ports = HCS_N_PORTS (ehci->hcs_params);
 
@@ -595,7 +595,7 @@
                if ((temp & PORT_PE) == 0
                                || (temp & PORT_OWNER) != 0)
                        continue;
-dbg ("%s: suspend port %d", hcd_to_bus (hcd)->bus_name, i);
+               ehci_dbg (ehci, "suspend port %d", i);
                temp |= PORT_SUSPEND;
                writel (temp, &ehci->regs->port_status [i]);
        }
@@ -617,7 +617,7 @@
        int                     ports;
        int                     i;
 
-       dbg ("%s: resume", hcd_to_bus (hcd)->bus_name);
+       ehci_dbg (ehci, "resume\n");
 
        ports = HCS_N_PORTS (ehci->hcs_params);
 
@@ -637,7 +637,7 @@
                if ((temp & PORT_PE) == 0
                                || (temp & PORT_SUSPEND) != 0)
                        continue;
-dbg ("%s: resume port %d", hcd_to_bus (hcd)->bus_name, i);
+               ehci_dbg (ehci, "resume port %d", i);
                temp |= PORT_RESUME;
                writel (temp, &ehci->regs->port_status [i]);
                readl (&ehci->regs->command);   /* unblock posted writes */
@@ -882,8 +882,8 @@
        /* ASSERT:  no requests/urbs are still linked (so no TDs) */
        /* ASSERT:  nobody can be submitting urbs for this any more */
 
-       dbg ("%s: free_config devnum %d",
-               hcd_to_bus (hcd)->bus_name, udev->devnum);
+       ehci_dbg (ehci, "free_config %s devnum %d\n",
+                       udev->devpath, udev->devnum);
 
        spin_lock_irqsave (&ehci->lock, flags);
        for (i = 0; i < 32; i++) {
@@ -914,7 +914,8 @@
                        dev->ep [i] = 0;
                        if (qh->qh_state == QH_STATE_IDLE)
                                goto idle;
-                       dbg ("free_config, async ep 0x%02x qh %p", i, qh);
+                       ehci_dbg (ehci, "free_config, async ep 0x%02x qh %p",
+                                       i, qh);
 
                        /* scan_async() empties the ring as it does its work,
                         * using IAA, but doesn't (yet?) turn it off.  if it



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to