aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/fotg210-hcd.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2013-11-18 07:23:07 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-03 13:28:40 -0500
commitbe5ac4c43d13f68320de16c2d1bcecdba0adbea1 (patch)
tree129145ee01d970e078d145bc840bccc23bd8e1b3 /drivers/usb/host/fotg210-hcd.c
parent3b707ece5b286cca47104364b2064ebb526d69ea (diff)
fotg210: kill fotg210_vdbg()
The decision what is interesting is shifted to user space by dynamic debugging. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/fotg210-hcd.c')
-rw-r--r--drivers/usb/host/fotg210-hcd.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 22f0b6859564..070582bb41ae 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -105,12 +105,6 @@ MODULE_PARM_DESC(hird, "host initiated resume duration, +1 for each 75us");
105#define fotg210_warn(fotg210, fmt, args...) \ 105#define fotg210_warn(fotg210, fmt, args...) \
106 dev_warn(fotg210_to_hcd(fotg210)->self.controller , fmt , ## args) 106 dev_warn(fotg210_to_hcd(fotg210)->self.controller , fmt , ## args)
107 107
108#ifdef VERBOSE_DEBUG
109# define fotg210_vdbg fotg210_dbg
110#else
111 static inline void fotg210_vdbg(struct fotg210_hcd *fotg210, ...) {}
112#endif
113
114/* check the values in the HCSPARAMS register 108/* check the values in the HCSPARAMS register
115 * (host controller _Structural_ parameters) 109 * (host controller _Structural_ parameters)
116 * see EHCI spec, Table 2-4 for each value 110 * see EHCI spec, Table 2-4 for each value
@@ -1349,7 +1343,7 @@ static void fotg210_iaa_watchdog(struct fotg210_hcd *fotg210)
1349 &fotg210->regs->status); 1343 &fotg210->regs->status);
1350 } 1344 }
1351 1345
1352 fotg210_vdbg(fotg210, "IAA watchdog: status %x cmd %x\n", 1346 fotg210_dbg(fotg210, "IAA watchdog: status %x cmd %x\n",
1353 status, cmd); 1347 status, cmd);
1354 end_unlink_async(fotg210); 1348 end_unlink_async(fotg210);
1355 } 1349 }
@@ -1805,7 +1799,7 @@ static int fotg210_hub_control(
1805 * which can be fine if this root hub has a 1799 * which can be fine if this root hub has a
1806 * transaction translator built in. 1800 * transaction translator built in.
1807 */ 1801 */
1808 fotg210_vdbg(fotg210, "port %d reset\n", wIndex + 1); 1802 fotg210_dbg(fotg210, "port %d reset\n", wIndex + 1);
1809 temp |= PORT_RESET; 1803 temp |= PORT_RESET;
1810 temp &= ~PORT_PE; 1804 temp &= ~PORT_PE;
1811 1805
@@ -2289,7 +2283,7 @@ static int qtd_copy_status(
2289 status = -EPROTO; 2283 status = -EPROTO;
2290 } 2284 }
2291 2285
2292 fotg210_vdbg(fotg210, 2286 fotg210_dbg(fotg210,
2293 "dev%d ep%d%s qtd token %08x --> status %d\n", 2287 "dev%d ep%d%s qtd token %08x --> status %d\n",
2294 usb_pipedevice(urb->pipe), 2288 usb_pipedevice(urb->pipe),
2295 usb_pipeendpoint(urb->pipe), 2289 usb_pipeendpoint(urb->pipe),
@@ -4592,7 +4586,7 @@ static void itd_link_urb(
4592 if (unlikely(list_empty(&stream->td_list))) { 4586 if (unlikely(list_empty(&stream->td_list))) {
4593 fotg210_to_hcd(fotg210)->self.bandwidth_allocated 4587 fotg210_to_hcd(fotg210)->self.bandwidth_allocated
4594 += stream->bandwidth; 4588 += stream->bandwidth;
4595 fotg210_vdbg(fotg210, 4589 fotg210_dbg(fotg210,
4596 "schedule devp %s ep%d%s-iso period %d start %d.%d\n", 4590 "schedule devp %s ep%d%s-iso period %d start %d.%d\n",
4597 urb->dev->devpath, stream->bEndpointAddress & 0x0f, 4591 urb->dev->devpath, stream->bEndpointAddress & 0x0f,
4598 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out", 4592 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out",
@@ -4725,7 +4719,7 @@ static bool itd_complete(struct fotg210_hcd *fotg210, struct fotg210_itd *itd)
4725 if (unlikely(list_is_singular(&stream->td_list))) { 4719 if (unlikely(list_is_singular(&stream->td_list))) {
4726 fotg210_to_hcd(fotg210)->self.bandwidth_allocated 4720 fotg210_to_hcd(fotg210)->self.bandwidth_allocated
4727 -= stream->bandwidth; 4721 -= stream->bandwidth;
4728 fotg210_vdbg(fotg210, 4722 fotg210_dbg(fotg210,
4729 "deschedule devp %s ep%d%s-iso\n", 4723 "deschedule devp %s ep%d%s-iso\n",
4730 dev->devpath, stream->bEndpointAddress & 0x0f, 4724 dev->devpath, stream->bEndpointAddress & 0x0f,
4731 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out"); 4725 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out");