usb: pcd: updata ep0 buffer address of multi-packet transfer
authorlyz <lyz@rock-chips.com>
Wed, 14 Aug 2013 08:28:50 +0000 (16:28 +0800)
committerlyz <lyz@rock-chips.com>
Wed, 14 Aug 2013 08:54:40 +0000 (16:54 +0800)
drivers/usb/dwc_otg/dwc_otg_cil.c

index f1e39436f5538f81ccd224ec4520801ac47f7641..35e88832a25673c2e628c6efbc4469e143a7b59d 100755 (executable)
@@ -2591,8 +2591,8 @@ void dwc_otg_ep0_continue_transfer(dwc_otg_core_if_t *_core_if, dwc_ep_t *_ep)
                /* Write the DMA register */
                if (_core_if->hwcfg2.b.architecture == DWC_INT_DMA_ARCH) 
                {
-                       dwc_write_reg32 (&(in_regs->diepdma), 
-                                        (uint32_t)_ep->dma_addr);
+                       dwc_write_reg32 (&(in_regs->diepdma), (uint32_t)_ep->dma_addr);
+                       _ep->dma_addr += _ep->maxpacket;
                }
 
                /* EP enable, IN data in FIFO */