Skip to content

Commit

Permalink
usb: s3c-hsotg: Fix big buffers transfer in DMA mode
Browse files Browse the repository at this point in the history
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
Anton Tikhomirov authored and Felipe Balbi committed Apr 10, 2012
1 parent 70fa030 commit db1d8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db1d8ba

Please sign in to comment.