Searched hist:"0 b453ffe28bb9227d86ddbe0893bd19c93f04ed7" (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/include/ |
H A D | mmc.h | diff 0b453ffe28bb9227d86ddbe0893bd19c93f04ed7 Sun Apr 05 03:00:55 CDT 2009 Rabin Vincent <rabin@rab.in> mmc: fix response decoding on little endian
The mmc code defines the response as an array of chars. However, it access the response bytes both as (i) an array of four uints (with casts) and (ii) as individual chars. The former case is used more often, including by the driver when it assigns the response.
The char-wise accesses are broken on little endian systems because they assume that the bytes in the uints are in big endian byte order.
This patch fixes this by changing the response to be an array of four uints and replacing the char-wise accesses with equivalent uint-wise accesses.
Signed-off-by: Rabin Vincent <rabin@rab.in>
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mmc.c | diff 0b453ffe28bb9227d86ddbe0893bd19c93f04ed7 Sun Apr 05 03:00:55 CDT 2009 Rabin Vincent <rabin@rab.in> mmc: fix response decoding on little endian
The mmc code defines the response as an array of chars. However, it access the response bytes both as (i) an array of four uints (with casts) and (ii) as individual chars. The former case is used more often, including by the driver when it assigns the response.
The char-wise accesses are broken on little endian systems because they assume that the bytes in the uints are in big endian byte order.
This patch fixes this by changing the response to be an array of four uints and replacing the char-wise accesses with equivalent uint-wise accesses.
Signed-off-by: Rabin Vincent <rabin@rab.in>
|