diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2012-03-06 14:05:49 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-04-10 19:11:44 +0300 |
commit | f7a83fe19336125d7eb26488788dc66c03f2c08e (patch) | |
tree | acad855cd590802ff2ff8d6122cfadb8a17db7b5 | |
parent | f79a60b8785409f5a77767780315ce6d3ea04a44 (diff) | |
download | linux-3.10-f7a83fe19336125d7eb26488788dc66c03f2c08e.tar.gz linux-3.10-f7a83fe19336125d7eb26488788dc66c03f2c08e.tar.bz2 linux-3.10-f7a83fe19336125d7eb26488788dc66c03f2c08e.zip |
usb: s3c-hsotg: Fix TX FIFOs allocation
According to documentation, TX FIFO_number index starts from 1.
For IN endpoint FIFO 0 we use GNPTXFSIZ register for programming
the size and memory start address.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 69295ba9d99..e3fe5fd795f 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -340,7 +340,7 @@ static void s3c_hsotg_init_fifo(struct s3c_hsotg *hsotg) /* currently we allocate TX FIFOs for all possible endpoints, * and assume that they are all the same size. */ - for (ep = 0; ep <= 15; ep++) { + for (ep = 1; ep <= 15; ep++) { val = addr; val |= size << S3C_DPTXFSIZn_DPTxFSize_SHIFT; addr += size; |