From 58ae34ce22ed449935232d3546a4d4db0dfc680b Mon Sep 17 00:00:00 2001 From: lyz Date: Wed, 14 Aug 2013 16:28:50 +0800 Subject: [PATCH] usb: pcd: updata ep0 buffer address of multi-packet transfer --- drivers/usb/dwc_otg/dwc_otg_cil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc_otg/dwc_otg_cil.c b/drivers/usb/dwc_otg/dwc_otg_cil.c index f1e39436f553..35e88832a256 100755 --- a/drivers/usb/dwc_otg/dwc_otg_cil.c +++ b/drivers/usb/dwc_otg/dwc_otg_cil.c @@ -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 */ -- 2.34.1