Skip to contentSkip to conversation

ehci.h: replace usb root support from 2 to 5

PATCH New Macpaul Lin 3 participants 3 messages Apr 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ehci.h: replace usb root support from 2 to 5

Replace usb root support from 2 to 5.
Some board has more then 2 usb slots hubs on the board.

---
 drivers/usb/host/ehci.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/host/ehci.h +1 -1
index 945ab64..c097d3d 100644
@@ -23,7 +23,7 @@
 #define USB_EHCI_H
 
 #if !defined(CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS)
-#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	2
+#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	5
 #endif
 
 /* (shifted) direction/type/recipient from the USB 2.0 spec, table 9.2 */
Signature · 1 line
1.7.3.5
#1 lore raw

PATCH 1/1 ehci.h: replace usb root support from 2 to 5

Dear Macpaul Lin,

Quoted 13 lines · In message <[email protected]> you wrote:

Replace usb root support from 2 to 5.
Some board has more then 2 usb slots hubs on the board.

---
 drivers/usb/host/ehci.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/host/ehci.h +0 -0
index 945ab64..c097d3d 100644

drivers/usb/host/ehci.h line 27

Quoted 6 lines
drivers/usb/host/ehci.h +1 -1
@@ -23,7 +23,7 @@
 #define USB_EHCI_H
 
 #if !defined(CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS)
-#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	2
+#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	5
 #endif

I think only very few systems will really need this. Why cannot you just #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS in your board config file(s) then?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How long does it take a  DEC  field  service  engineer  to  change  a
lightbulb?       It depends on how many bad ones he brought with him.
#2 lore raw

PATCH 1/1 ehci.h: replace usb root support from 2 to 5

Hi Wolfgang,

2011/4/26 Wolfgang Denk <[email protected]>:

Quoted 11 lines

Dear Macpaul Lin,

Quoted 4 lines

?#if !defined(CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS)

(quoted diff) +1 -1
-#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS ? 2
+#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS ? 5

?#endif

I think only very few systems will really need this. ?Why cannot you just #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS in your board config file(s) then?

Quoted 3 lines

Best regards,

Wolfgang Denk

I think 2 kinds of devices like thinclient and usb sharing hub device will require it.

Okay, as your suggestion, I will do it in board config.

Thanks.

Signature · 2 lines
Best regards,
Macpaul Lin