Commit f7a83fe1 authored by Anton Tikhomirov's avatar Anton Tikhomirov Committed by Felipe Balbi

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: default avatarAnton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f79a60b8
...@@ -340,7 +340,7 @@ static void s3c_hsotg_init_fifo(struct s3c_hsotg *hsotg) ...@@ -340,7 +340,7 @@ static void s3c_hsotg_init_fifo(struct s3c_hsotg *hsotg)
/* currently we allocate TX FIFOs for all possible endpoints, /* currently we allocate TX FIFOs for all possible endpoints,
* and assume that they are all the same size. */ * and assume that they are all the same size. */
for (ep = 0; ep <= 15; ep++) { for (ep = 1; ep <= 15; ep++) {
val = addr; val = addr;
val |= size << S3C_DPTXFSIZn_DPTxFSize_SHIFT; val |= size << S3C_DPTXFSIZn_DPTxFSize_SHIFT;
addr += size; addr += size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment