aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 81f62da26f36..4a251458c61d 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -505,6 +505,7 @@ static int s3c_hsotg_write_fifo(struct s3c_hsotg *hsotg,
505 } 505 }
506 506
507 can_write = S3C_GNPTXSTS_NPTxFSpcAvail_GET(gnptxsts); 507 can_write = S3C_GNPTXSTS_NPTxFSpcAvail_GET(gnptxsts);
508 can_write *= 4; /* fifo size is in 32bit quantities. */
508 } 509 }
509 510
510 dev_dbg(hsotg->dev, "%s: GNPTXSTS=%08x, can=%d, to=%d, mps %d\n", 511 dev_dbg(hsotg->dev, "%s: GNPTXSTS=%08x, can=%d, to=%d, mps %d\n",
@@ -2732,7 +2733,7 @@ static void __devinit s3c_hsotg_initep(struct s3c_hsotg *hsotg,
2732 */ 2733 */
2733 2734
2734 ptxfifo = readl(hsotg->regs + S3C_DPTXFSIZn(epnum)); 2735 ptxfifo = readl(hsotg->regs + S3C_DPTXFSIZn(epnum));
2735 hs_ep->fifo_size = S3C_DPTXFSIZn_DPTxFSize_GET(ptxfifo); 2736 hs_ep->fifo_size = S3C_DPTXFSIZn_DPTxFSize_GET(ptxfifo) * 4;
2736 2737
2737 /* if we're using dma, we need to set the next-endpoint pointer 2738 /* if we're using dma, we need to set the next-endpoint pointer
2738 * to be something valid. 2739 * to be something valid.