aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/blackfin.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-05-11 05:44:08 -0400
committerFelipe Balbi <balbi@ti.com>2011-05-13 07:34:04 -0400
commit5c8a86e10a7c164f44537fabdc169fd8b4e7a440 (patch)
tree96fe3eb08b9ae01f62e45b725049d3f2aa6b7bba /drivers/usb/musb/blackfin.c
parenta0885924326f79e157847010a9aaf49b058b30dc (diff)
usb: musb: drop unneeded musb_debug trickery
We have a generic way of enabling/disabling different debug messages on a driver called DYNAMIC_PRINTK. Anyone interested in enabling just part of the debug messages, please read the documentation under: Documentation/dynamic-debug-howto.txt for information on how to use that great infrastructure. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/blackfin.c')
-rw-r--r--drivers/usb/musb/blackfin.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index e141d89656e1..95d75c00404b 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -43,7 +43,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
43 43
44 musb_writew(epio, MUSB_TXCOUNT, len); 44 musb_writew(epio, MUSB_TXCOUNT, len);
45 45
46 DBG(4, "TX ep%d fifo %p count %d buf %p, epio %p\n", 46 dev_dbg(musb->controller, "TX ep%d fifo %p count %d buf %p, epio %p\n",
47 hw_ep->epnum, fifo, len, src, epio); 47 hw_ep->epnum, fifo, len, src, epio);
48 48
49 dump_fifo_data(src, len); 49 dump_fifo_data(src, len);
@@ -154,7 +154,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
154 *(dst + len - 1) = (u8)inw((unsigned long)fifo + 4); 154 *(dst + len - 1) = (u8)inw((unsigned long)fifo + 4);
155 } 155 }
156 } 156 }
157 DBG(4, "%cX ep%d fifo %p count %d buf %p\n", 157 dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n",
158 'R', hw_ep->epnum, fifo, len, dst); 158 'R', hw_ep->epnum, fifo, len, dst);
159 159
160 dump_fifo_data(dst, len); 160 dump_fifo_data(dst, len);
@@ -279,13 +279,14 @@ static void musb_conn_timer_handler(unsigned long _musb)
279 } 279 }
280 break; 280 break;
281 default: 281 default:
282 DBG(1, "%s state not handled\n", 282 dev_dbg(musb->controller, "%s state not handled\n",
283 otg_state_string(musb->xceiv->state)); 283 otg_state_string(musb->xceiv->state));
284 break; 284 break;
285 } 285 }
286 spin_unlock_irqrestore(&musb->lock, flags); 286 spin_unlock_irqrestore(&musb->lock, flags);
287 287
288 DBG(4, "state is %s\n", otg_state_string(musb->xceiv->state)); 288 dev_dbg(musb->controller, "state is %s\n",
289 otg_state_string(musb->xceiv->state));
289} 290}
290 291
291static void bfin_musb_enable(struct musb *musb) 292static void bfin_musb_enable(struct musb *musb)
@@ -307,7 +308,7 @@ static void bfin_musb_set_vbus(struct musb *musb, int is_on)
307 value = !value; 308 value = !value;
308 gpio_set_value(musb->config->gpio_vrsel, value); 309 gpio_set_value(musb->config->gpio_vrsel, value);
309 310
310 DBG(1, "VBUS %s, devctl %02x " 311 dev_dbg(musb->controller, "VBUS %s, devctl %02x "
311 /* otg %3x conf %08x prcm %08x */ "\n", 312 /* otg %3x conf %08x prcm %08x */ "\n",
312 otg_state_string(musb->xceiv->state), 313 otg_state_string(musb->xceiv->state),
313 musb_readb(musb->mregs, MUSB_DEVCTL)); 314 musb_readb(musb->mregs, MUSB_DEVCTL));