~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/usb/musb/blackfin.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 */
36
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
39
        void __iomem *fifo = hw_ep->fifo;
39
40
        void __iomem *epio = hw_ep->regs;
40
41
        u8 epnum = hw_ep->epnum;
43
44
 
44
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
48
                        hw_ep->epnum, fifo, len, src, epio);
48
49
 
49
50
        dump_fifo_data(src, len);
98
99
 */
99
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
103
        void __iomem *fifo = hw_ep->fifo;
102
104
        u8 epnum = hw_ep->epnum;
103
105
 
154
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
160
                        'R', hw_ep->epnum, fifo, len, dst);
159
161
 
160
162
        dump_fifo_data(dst, len);
279
281
                }
280
282
                break;
281
283
        default:
282
 
                DBG(1, "%s state not handled\n",
 
284
                dev_dbg(musb->controller, "%s state not handled\n",
283
285
                        otg_state_string(musb->xceiv->state));
284
286
                break;
285
287
        }
286
288
        spin_unlock_irqrestore(&musb->lock, flags);
287
289
 
288
 
        DBG(4, "state is %s\n", otg_state_string(musb->xceiv->state));
 
290
        dev_dbg(musb->controller, "state is %s\n",
 
291
                otg_state_string(musb->xceiv->state));
289
292
}
290
293
 
291
294
static void bfin_musb_enable(struct musb *musb)
307
310
                value = !value;
308
311
        gpio_set_value(musb->config->gpio_vrsel, value);
309
312
 
310
 
        DBG(1, "VBUS %s, devctl %02x "
 
313
        dev_dbg(musb->controller, "VBUS %s, devctl %02x "
311
314
                /* otg %3x conf %08x prcm %08x */ "\n",
312
315
                otg_state_string(musb->xceiv->state),
313
316
                musb_readb(musb->mregs, MUSB_DEVCTL));