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>
This commit is contained in:
@@ -43,7 +43,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
|
||||
|
||||
musb_writew(epio, MUSB_TXCOUNT, len);
|
||||
|
||||
DBG(4, "TX ep%d fifo %p count %d buf %p, epio %p\n",
|
||||
dev_dbg(musb->controller, "TX ep%d fifo %p count %d buf %p, epio %p\n",
|
||||
hw_ep->epnum, fifo, len, src, epio);
|
||||
|
||||
dump_fifo_data(src, len);
|
||||
@@ -154,7 +154,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
|
||||
*(dst + len - 1) = (u8)inw((unsigned long)fifo + 4);
|
||||
}
|
||||
}
|
||||
DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
|
||||
dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n",
|
||||
'R', hw_ep->epnum, fifo, len, dst);
|
||||
|
||||
dump_fifo_data(dst, len);
|
||||
@@ -279,13 +279,14 @@ static void musb_conn_timer_handler(unsigned long _musb)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
DBG(1, "%s state not handled\n",
|
||||
dev_dbg(musb->controller, "%s state not handled\n",
|
||||
otg_state_string(musb->xceiv->state));
|
||||
break;
|
||||
}
|
||||
spin_unlock_irqrestore(&musb->lock, flags);
|
||||
|
||||
DBG(4, "state is %s\n", otg_state_string(musb->xceiv->state));
|
||||
dev_dbg(musb->controller, "state is %s\n",
|
||||
otg_state_string(musb->xceiv->state));
|
||||
}
|
||||
|
||||
static void bfin_musb_enable(struct musb *musb)
|
||||
@@ -307,7 +308,7 @@ static void bfin_musb_set_vbus(struct musb *musb, int is_on)
|
||||
value = !value;
|
||||
gpio_set_value(musb->config->gpio_vrsel, value);
|
||||
|
||||
DBG(1, "VBUS %s, devctl %02x "
|
||||
dev_dbg(musb->controller, "VBUS %s, devctl %02x "
|
||||
/* otg %3x conf %08x prcm %08x */ "\n",
|
||||
otg_state_string(musb->xceiv->state),
|
||||
musb_readb(musb->mregs, MUSB_DEVCTL));
|
||||
|
Reference in New Issue
Block a user