[U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support

Marek Vasut
2011-11-11T17:49:58Z

> Hi Marek,
>
> On 11/09/2011 11:18 AM, Marek Vasut wrote:
> > This enables the second port, aka. the port with the USB connector on the
> > M28EVK.
>
> Which version of GCC you are using? I noticed that "usb start" freezes
> after message "scanning bus for devices..." if I had memory stick
> connected. I used GCC 4.6.1 that comes with Yocto 1.1. Without stick I
> did not have any such problems. The board is very similar to M28EVK.
> With GCC 4.3.4 it works fine.
>
> I also tested both compilers on our Atmel AT91SAM9260 based device but I
> didn't have such problems.
>
> Any ideas how to debug this further? I noticed some comments related to
> GCC in common/usb.c before usb_set_maxpacket_ep function. I also printed
> out i and ii in usb_set_maxpacket. Results were something that I didn't
> expect:
> i: 0, ii: 0
> i: 0, ii: 1
> i: 4, ii: -30879
> i: 4, ii: -30878
>
> --
> Veli-Pekka Peltola

Can you try this patch please:

Subject: [PATCH] GCC4.6: Fix common/usb.c on xscale
Message-Id: <1320532609-2408-1-git-send-email-marek.vasut@gmail.com>

I had the same issue with gcc4.6 on xscale, if it fixes your problem, can you
also try with 3.4.3 and give me your ACK?

M