Re: [U-Boot] [PATCH v2] crc32: Correct endianness of crc32 result

2013-04-19 Thread Tom Rini
On Thu, Apr 18, 2013 at 01:25:51PM -0700, Simon Glass wrote: > When crc32 is handled by the hash library, it requires the data to be in > big-endian format, since it reads it byte-wise. Thus at present the 'crc32' > command reports incorrect data. For example, previously we might see: > > Peach #

[U-Boot] [PATCH v2] crc32: Correct endianness of crc32 result

2013-04-18 Thread Simon Glass
When crc32 is handled by the hash library, it requires the data to be in big-endian format, since it reads it byte-wise. Thus at present the 'crc32' command reports incorrect data. For example, previously we might see: Peach # crc32 4000 100 CRC32 for 4000 ... 40ff ==> 0d968558 but in