aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZeng Tao <prime.zeng@hisilicon.com>2018-06-29 01:54:19 +0800
committerMarek Vasut <marex@denx.de>2018-06-29 10:52:12 +0200
commit11080bf6c705ca1ebed23417204a73738bd81669 (patch)
tree7e4b259446a2519f3be70f987e0ed837c706dbe4 /drivers
parentebbc23a0495cd189cda2760f66cc0195dd030a19 (diff)
downloadu-boot-midas-11080bf6c705ca1ebed23417204a73738bd81669.tar.gz
u-boot-midas-11080bf6c705ca1ebed23417204a73738bd81669.tar.bz2
u-boot-midas-11080bf6c705ca1ebed23417204a73738bd81669.zip
usb: ohci: change the NUM_EDs from 8 to 32
For ohci, the maximam supported endpoint number is 32(in and out), and now we have used (usb_pipeendpoint(pipe) << 1) to index the specified endpoint descritor, usb_pipeendpoint(pipe) can reach 0xf, so we need change the NUM_EDs from 8 to 32. Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ohci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h
index 2350831932..fba78dcf7a 100644
--- a/drivers/usb/host/ohci.h
+++ b/drivers/usb/host/ohci.h
@@ -359,7 +359,7 @@ typedef struct
} urb_priv_t;
#define URB_DEL 1
-#define NUM_EDS 8 /* num of preallocated endpoint descriptors */
+#define NUM_EDS 32 /* num of preallocated endpoint descriptors */
#define NUM_TD 64 /* we need more TDs than EDs */