Commit 3b707ece authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

fotg210: remove conditional compilation

The decision what is interesting is made in user space.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f848a88d
...@@ -1761,10 +1761,8 @@ static int fotg210_hub_control( ...@@ -1761,10 +1761,8 @@ static int fotg210_hub_control(
if (test_bit(wIndex, &fotg210->port_c_suspend)) if (test_bit(wIndex, &fotg210->port_c_suspend))
status |= USB_PORT_STAT_C_SUSPEND << 16; status |= USB_PORT_STAT_C_SUSPEND << 16;
#ifndef VERBOSE_DEBUG if (status & ~0xffff) /* only if wPortChange is interesting */
if (status & ~0xffff) /* only if wPortChange is interesting */ dbg_port(fotg210, "GetStatus", wIndex + 1, temp);
#endif
dbg_port(fotg210, "GetStatus", wIndex + 1, temp);
put_unaligned_le32(status, buf); put_unaligned_le32(status, buf);
break; break;
case SetHubFeature: case SetHubFeature:
...@@ -2225,13 +2223,12 @@ static void fotg210_clear_tt_buffer(struct fotg210_hcd *fotg210, ...@@ -2225,13 +2223,12 @@ static void fotg210_clear_tt_buffer(struct fotg210_hcd *fotg210,
* Note: this routine is never called for Isochronous transfers. * Note: this routine is never called for Isochronous transfers.
*/ */
if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) {
#ifdef DEBUG
struct usb_device *tt = urb->dev->tt->hub; struct usb_device *tt = urb->dev->tt->hub;
dev_dbg(&tt->dev, dev_dbg(&tt->dev,
"clear tt buffer port %d, a%d ep%d t%08x\n", "clear tt buffer port %d, a%d ep%d t%08x\n",
urb->dev->ttport, urb->dev->devnum, urb->dev->ttport, urb->dev->devnum,
usb_pipeendpoint(urb->pipe), token); usb_pipeendpoint(urb->pipe), token);
#endif /* DEBUG */
if (urb->dev->tt->hub != if (urb->dev->tt->hub !=
fotg210_to_hcd(fotg210)->self.root_hub) { fotg210_to_hcd(fotg210)->self.root_hub) {
if (usb_hub_clear_tt_buffer(urb) == 0) if (usb_hub_clear_tt_buffer(urb) == 0)
...@@ -3534,11 +3531,9 @@ periodic_usecs(struct fotg210_hcd *fotg210, unsigned frame, unsigned uframe) ...@@ -3534,11 +3531,9 @@ periodic_usecs(struct fotg210_hcd *fotg210, unsigned frame, unsigned uframe)
break; break;
} }
} }
#ifdef DEBUG
if (usecs > fotg210->uframe_periodic_max) if (usecs > fotg210->uframe_periodic_max)
fotg210_err(fotg210, "uframe %d sched overrun: %d usecs\n", fotg210_err(fotg210, "uframe %d sched overrun: %d usecs\n",
frame * 8 + uframe, usecs); frame * 8 + uframe, usecs);
#endif
return usecs; return usecs;
} }
...@@ -5395,10 +5390,8 @@ static irqreturn_t fotg210_irq(struct usb_hcd *hcd) ...@@ -5395,10 +5390,8 @@ static irqreturn_t fotg210_irq(struct usb_hcd *hcd)
cmd = fotg210_readl(fotg210, &fotg210->regs->command); cmd = fotg210_readl(fotg210, &fotg210->regs->command);
bh = 0; bh = 0;
#ifdef VERBOSE_DEBUG
/* unrequested/ignored: Frame List Rollover */ /* unrequested/ignored: Frame List Rollover */
dbg_status(fotg210, "irq", status); dbg_status(fotg210, "irq", status);
#endif
/* INT, ERR, and IAA interrupt rates can be throttled */ /* INT, ERR, and IAA interrupt rates can be throttled */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment