[U-Boot] [PATCH] USB-CDC: correct wrong alignment in ether.c

Stefano Babic sbabic at denx.de
Thu Aug 12 14:21:33 CEST 2010


Sergei Shtylyov wrote:
> Hello.
> 

Hi Sergej,

> Stefano Babic wrote:
> 
>> The buffer for the status request must be word aligned
>> because it is accessed with 32 bit pointer in the
>> eth_status_complete function.
> 
>    You don't tell anything here about why the size of the array becomes
> 16x with your patch...

You are right, I missed to change the value back after some tests.
STATUS_BYTECOUNT is correct, it is 16 byte and take care of space for
data. I will change the size back.

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list