diff options
Diffstat (limited to 'drivers/usb/musb/blackfin.c')
-rw-r--r-- | drivers/usb/musb/blackfin.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 8e2a1ff8a35a..ae8c39617743 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -35,6 +35,7 @@ struct bfin_glue { | |||
35 | */ | 35 | */ |
36 | void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) | 36 | void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) |
37 | { | 37 | { |
38 | struct musb *musb = hw_ep->musb; | ||
38 | void __iomem *fifo = hw_ep->fifo; | 39 | void __iomem *fifo = hw_ep->fifo; |
39 | void __iomem *epio = hw_ep->regs; | 40 | void __iomem *epio = hw_ep->regs; |
40 | u8 epnum = hw_ep->epnum; | 41 | u8 epnum = hw_ep->epnum; |
@@ -43,7 +44,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) | |||
43 | 44 | ||
44 | musb_writew(epio, MUSB_TXCOUNT, len); | 45 | musb_writew(epio, MUSB_TXCOUNT, len); |
45 | 46 | ||
46 | DBG(4, "TX ep%d fifo %p count %d buf %p, epio %p\n", | 47 | dev_dbg(musb->controller, "TX ep%d fifo %p count %d buf %p, epio %p\n", |
47 | hw_ep->epnum, fifo, len, src, epio); | 48 | hw_ep->epnum, fifo, len, src, epio); |
48 | 49 | ||
49 | dump_fifo_data(src, len); | 50 | dump_fifo_data(src, len); |
@@ -98,6 +99,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) | |||
98 | */ | 99 | */ |
99 | void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) | 100 | void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) |
100 | { | 101 | { |
102 | struct musb *musb = hw_ep->musb; | ||
101 | void __iomem *fifo = hw_ep->fifo; | 103 | void __iomem *fifo = hw_ep->fifo; |
102 | u8 epnum = hw_ep->epnum; | 104 | u8 epnum = hw_ep->epnum; |
103 | 105 | ||
@@ -154,7 +156,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); | 156 | *(dst + len - 1) = (u8)inw((unsigned long)fifo + 4); |
155 | } | 157 | } |
156 | } | 158 | } |
157 | DBG(4, "%cX ep%d fifo %p count %d buf %p\n", | 159 | dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n", |
158 | 'R', hw_ep->epnum, fifo, len, dst); | 160 | 'R', hw_ep->epnum, fifo, len, dst); |
159 | 161 | ||
160 | dump_fifo_data(dst, len); | 162 | dump_fifo_data(dst, len); |
@@ -279,12 +281,14 @@ static void musb_conn_timer_handler(unsigned long _musb) | |||
279 | } | 281 | } |
280 | break; | 282 | break; |
281 | default: | 283 | default: |
282 | DBG(1, "%s state not handled\n", otg_state_string(musb)); | 284 | dev_dbg(musb->controller, "%s state not handled\n", |
285 | otg_state_string(musb->xceiv->state)); | ||
283 | break; | 286 | break; |
284 | } | 287 | } |
285 | spin_unlock_irqrestore(&musb->lock, flags); | 288 | spin_unlock_irqrestore(&musb->lock, flags); |
286 | 289 | ||
287 | DBG(4, "state is %s\n", otg_state_string(musb)); | 290 | dev_dbg(musb->controller, "state is %s\n", |
291 | otg_state_string(musb->xceiv->state)); | ||
288 | } | 292 | } |
289 | 293 | ||
290 | static void bfin_musb_enable(struct musb *musb) | 294 | static void bfin_musb_enable(struct musb *musb) |
@@ -306,9 +310,9 @@ static void bfin_musb_set_vbus(struct musb *musb, int is_on) | |||
306 | value = !value; | 310 | value = !value; |
307 | gpio_set_value(musb->config->gpio_vrsel, value); | 311 | gpio_set_value(musb->config->gpio_vrsel, value); |
308 | 312 | ||
309 | DBG(1, "VBUS %s, devctl %02x " | 313 | dev_dbg(musb->controller, "VBUS %s, devctl %02x " |
310 | /* otg %3x conf %08x prcm %08x */ "\n", | 314 | /* otg %3x conf %08x prcm %08x */ "\n", |
311 | otg_state_string(musb), | 315 | otg_state_string(musb->xceiv->state), |
312 | musb_readb(musb->mregs, MUSB_DEVCTL)); | 316 | musb_readb(musb->mregs, MUSB_DEVCTL)); |
313 | } | 317 | } |
314 | 318 | ||