Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

usb: s3c-hsotg: Fix big buffers transfer in DMA mode

DMA address register shouldn't be updated manually if transfer size
requires multiple packets.

Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information...
commit db1d8ba36551bf55222c7961d9e9a1195a612fde 1 parent 70fa030
Anton Tikhomirov authored Felipe Balbi committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  drivers/usb/gadget/s3c-hsotg.c
View
2  drivers/usb/gadget/s3c-hsotg.c
@@ -741,7 +741,7 @@ static void s3c_hsotg_start_req(struct s3c_hsotg *hsotg,
/* write size / packets */
writel(epsize, hsotg->regs + epsize_reg);
- if (using_dma(hsotg)) {
+ if (using_dma(hsotg) && !continuing) {
unsigned int dma_reg;
/* write DMA address to control register, buffer already
Please sign in to comment.
Something went wrong with that request. Please try again.