diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2012-03-06 06:05:49 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-04-10 18:11:44 +0200 |
commit | f7a83fe19336125d7eb26488788dc66c03f2c08e (patch) | |
tree | acad855cd590802ff2ff8d6122cfadb8a17db7b5 /drivers/usb | |
parent | usb: fsl_udc_core: prime status stage once data stage has primed (diff) | |
download | linux-f7a83fe19336125d7eb26488788dc66c03f2c08e.tar.xz linux-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>
Diffstat (limited to 'drivers/usb')
-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 69295ba9d99a..e3fe5fd795f0 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; |