diff --git a/drivers/char/tty_ioctl.c b/drivers/char/tty_ioctl.c index 8e67d5c..616ec99 100644 --- a/drivers/char/tty_ioctl.c +++ b/drivers/char/tty_ioctl.c @@ -26,7 +26,7 @@ #include #include -#undef TTY_DEBUG_WAIT_UNTIL_SENT +#define TTY_DEBUG_WAIT_UNTIL_SENT #undef DEBUG diff --git a/drivers/usb/host/ehci-q.c b/drivers/usb/host/ehci-q.c index 2494599..0766f1b 100644 --- a/drivers/usb/host/ehci-q.c +++ b/drivers/usb/host/ehci-q.c @@ -392,7 +392,7 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh) "%s detected XactErr len %zu/%zu retry %d\n", qtd->urb->dev->devpath, qtd->length - QTD_LENGTH(token), qtd->length, qh->xacterrs); - +#if 0 /* reset the token in the qtd and the * qh overlay (which still contains * the qtd) so that we pick up from @@ -407,6 +407,7 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh) hw->hw_token = cpu_to_hc32(ehci, token); goto retry_xacterr; +#endif } stopped = 1; diff --git a/drivers/usb/serial/Makefile b/drivers/usb/serial/Makefile index 66619be..194a1b7 100644 --- a/drivers/usb/serial/Makefile +++ b/drivers/usb/serial/Makefile @@ -55,4 +55,3 @@ obj-$(CONFIG_USB_SERIAL_TI) += ti_usb_3410_5052.o obj-$(CONFIG_USB_SERIAL_VISOR) += visor.o obj-$(CONFIG_USB_SERIAL_WHITEHEAT) += whiteheat.o obj-$(CONFIG_USB_SERIAL_XIRCOM) += keyspan_pda.o - diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 9c60d6d..f9065a4 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1949,7 +1949,8 @@ static void ftdi_write_bulk_callback(struct urb *urb) spin_unlock_irqrestore(&priv->tx_lock, flags); if (status) { - dbg("nonzero write bulk status received: %d", status); + dbg("nonzero write bulk status received: %d countback: %lu", + status, countback); return; } @@ -1988,11 +1989,10 @@ static int ftdi_chars_in_buffer(struct tty_struct *tty) int buffered; unsigned long flags; - dbg("%s - port %d", __func__, port->number); - spin_lock_irqsave(&priv->tx_lock, flags); buffered = (int)priv->tx_outstanding_bytes; spin_unlock_irqrestore(&priv->tx_lock, flags); + dbg("%s - port %d buffered: %d", __func__, port->number, buffered); if (buffered < 0) { dev_err(&port->dev, "%s outstanding tx bytes is negative!\n", __func__); @@ -2010,7 +2010,9 @@ static int ftdi_process_packet(struct tty_struct *tty, char flag; char *ch; +#if 0 dbg("%s - port %d", __func__, port->number); +#endif if (len < 2) { dbg("malformed packet"); @@ -2096,7 +2098,9 @@ static void ftdi_read_bulk_callback(struct urb *urb) struct usb_serial_port *port = urb->context; unsigned long flags; +#if 0 dbg("%s - port %d", __func__, port->number); +#endif if (urb->status) { dbg("%s - nonzero read bulk status received: %d", @@ -2104,8 +2108,10 @@ static void ftdi_read_bulk_callback(struct urb *urb) return; } +#if 0 usb_serial_debug_data(debug, &port->dev, __func__, urb->actual_length, urb->transfer_buffer); +#endif ftdi_process_read(port); spin_lock_irqsave(&port->lock, flags); diff --git a/include/linux/usb.h b/include/linux/usb.h