[U-Boot] Fwd: U-boot xHCI endianes issues

Mohammed Mohisin mohammedmohisin at gmail.com
Mon Apr 25 18:39:30 CEST 2016


Hi All,

I am running u-boot on ARMv7 - 32 bit in Big Endian mode.
Intially, i was stuck while enumerating the mass storage device after port
change event.

But changing the below @ line 400 in "xhci-mem.c"
@
http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/usb/host/xhci-mem.c;h=37444526f7584cc5d021ee2f9e78b3d785aa4432;hb=HEAD
.

Note:It was also highlighted by Aaron.

    /* Point to output device context in dcbaa. */
    ctrl->dcbaa->dev_context_ptrs[slot_id] = byte_64;

TO
    /* Point to output device context in dcbaa. */
    ctrl->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(byte_64);

Solved it... Now the enumeration all happened successfully.

After which the first Bulk transfer is failing with following error msg:
    "XHCI bulk transfer timed out, aborting...\n"

I doubt, i am still missing few more "le to be" conversion which are not
part of latest uboot code

Request ur help.

Regards
Mohamed Mohisin


More information about the U-Boot mailing list