diff options
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 227c1dfa6be..de7405e6d7d 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1431,7 +1431,7 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb) | |||
1431 | struct musb_hw_ep *hw_ep = musb->endpoints + i; | 1431 | struct musb_hw_ep *hw_ep = musb->endpoints + i; |
1432 | 1432 | ||
1433 | hw_ep->fifo = MUSB_FIFO_OFFSET(i) + mbase; | 1433 | hw_ep->fifo = MUSB_FIFO_OFFSET(i) + mbase; |
1434 | #ifdef CONFIG_USB_MUSB_TUSB6010 | 1434 | #if defined(CONFIG_USB_MUSB_TUSB6010) || defined (CONFIG_USB_MUSB_TUSB6010_MODULE) |
1435 | hw_ep->fifo_async = musb->async + 0x400 + MUSB_FIFO_OFFSET(i); | 1435 | hw_ep->fifo_async = musb->async + 0x400 + MUSB_FIFO_OFFSET(i); |
1436 | hw_ep->fifo_sync = musb->sync + 0x400 + MUSB_FIFO_OFFSET(i); | 1436 | hw_ep->fifo_sync = musb->sync + 0x400 + MUSB_FIFO_OFFSET(i); |
1437 | hw_ep->fifo_sync_va = | 1437 | hw_ep->fifo_sync_va = |
@@ -1630,6 +1630,7 @@ void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit) | |||
1630 | } | 1630 | } |
1631 | } | 1631 | } |
1632 | } | 1632 | } |
1633 | EXPORT_SYMBOL_GPL(musb_dma_completion); | ||
1633 | 1634 | ||
1634 | #else | 1635 | #else |
1635 | #define use_dma 0 | 1636 | #define use_dma 0 |
@@ -2157,6 +2158,7 @@ static void musb_save_context(struct musb *musb) | |||
2157 | if (!epio) | 2158 | if (!epio) |
2158 | continue; | 2159 | continue; |
2159 | 2160 | ||
2161 | musb_writeb(musb_base, MUSB_INDEX, i); | ||
2160 | musb->context.index_regs[i].txmaxp = | 2162 | musb->context.index_regs[i].txmaxp = |
2161 | musb_readw(epio, MUSB_TXMAXP); | 2163 | musb_readw(epio, MUSB_TXMAXP); |
2162 | musb->context.index_regs[i].txcsr = | 2164 | musb->context.index_regs[i].txcsr = |
@@ -2232,6 +2234,7 @@ static void musb_restore_context(struct musb *musb) | |||
2232 | if (!epio) | 2234 | if (!epio) |
2233 | continue; | 2235 | continue; |
2234 | 2236 | ||
2237 | musb_writeb(musb_base, MUSB_INDEX, i); | ||
2235 | musb_writew(epio, MUSB_TXMAXP, | 2238 | musb_writew(epio, MUSB_TXMAXP, |
2236 | musb->context.index_regs[i].txmaxp); | 2239 | musb->context.index_regs[i].txmaxp); |
2237 | musb_writew(epio, MUSB_TXCSR, | 2240 | musb_writew(epio, MUSB_TXCSR, |