Cannot enumerate usb devices [XM]

I am trying to build a kernel from the omap git tree which is working
find so far (able to cross compile, boot, etc) but I cannot seem to
get the lan usb hub chip (LAN9514) powered (D14 LED doesn't come on)

configs that I changed:

CONFIG_TWL4030_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_NET_SMSC95XX=y
(more but don't exactly remember)

In my boot message though I get this:

user@user-desktop ~ $ grep -i usb /tmp/newest2.log
[ 0.073089] usbcore: registered new interface driver usbfs
[ 0.074432] usbcore: registered new interface driver hub
[ 0.075073] usbcore: registered new device driver usb
[ 1.080932] usbcore: registered new interface driver asix
[ 1.087310] usbcore: registered new interface driver cdc_ether
[ 1.094085] usbcore: registered new interface driver smsc95xx
[ 1.100555] usbcore: registered new interface driver net1080
[ 1.107055] usbcore: registered new interface driver cdc_subset
[ 1.113830] usbcore: registered new interface driver zaurus
[ 1.121307] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 3.150787] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus number 1
[ 3.179412] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 3.186584] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 3.193725] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 3.201324] usb usb1: Product: OMAP-EHCI Host Controller
[ 3.206909] usb usb1: Manufacturer: Linux 2.6.36-rc6-08838-g0882b14
ehci_hcd
[ 3.214294] usb usb1: SerialNumber: ehci-omap.0
[ 3.223571] hub 1-0:1.0: USB hub found
[ 3.266448] usbcore: registered new interface driver cdc_wdm
[ 3.272369] Initializing USB Mass Storage driver...
[ 3.278076] usbcore: registered new interface driver usb-storage
[ 3.284454] USB Mass Storage support registered.
[ 3.290435] usbcore: registered new interface driver libusual
[ 3.297058] usbcore: registered new interface driver usbtest
[ 3.440185] usbcore: registered new interface driver usbhid
[ 3.446166] usbhid: USB HID core driver
[ 3.453369] usbcore: registered new interface driver snd-usb-audio
[ 3.587310] hub 1-0:1.0: unable to enumerate USB device on port 2

I'm guessing that last line give hint as to whats wrong.

I know my hardware works because the angstrom image boots up fine.

What am I missing here?

dunno, I tried linux omap git tree on beagle C3, usb hub seems to work
ok, config based on omap2plus_defconfig here http://pastebin.com/y3NFsq4u

Figured it out.

Apparently the omap git tree hasnt been keeping up to date with
patches for beagleboard or something

in file:

arch/arm/mach-omap2/board-omap3beagle.c

The direction should be 1, not 0. It is active HIGH

  /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, active low)
*/
  gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR");
  gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1);

In the angstrom git tree they have a conditional detecting which board
it is and sets the direction accordingly

Ethernet and USB work now.

Will you be submitting a patch to linux-omap to fix? Sorry for being so slow in the submissions. Fortunately, Robert has been picking up several.

Yeah ill submit a patch to detect board version