summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShinya Kuribayashi <shinya.kuribayashi@necel.com>2008-01-16 16:13:31 +0900
committerBen Warren <biggerbadderben@gmail.com>2008-01-16 17:37:35 -0500
commitc2f896b8fc4722e36915903e1942e138e68ce804 (patch)
tree6783655dd54aacf1c4cce54cb1d144df65586b22 /drivers
parent96a236746fe6a7b84802afb4ed31536696d34812 (diff)
downloadu-boot-imx-c2f896b8fc4722e36915903e1942e138e68ce804.zip
u-boot-imx-c2f896b8fc4722e36915903e1942e138e68ce804.tar.gz
u-boot-imx-c2f896b8fc4722e36915903e1942e138e68ce804.tar.bz2
drivers/net/rtl8139.c: rx_status should be le32_to_cpu(rx_status).
rx_status on the memory is basically in LE, but needs to be handled in CPU endian. le32_to_cpu() takes up this mission. Even if on the sane hardware, it'll work fine. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com> Cc: Masami Komiya <mkomiya@sonare.it> Cc: Lucas Jin <lucasjin@gmail.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/rtl8139.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index 014f3b4..097f684 100644
--- a/drivers/net/rtl8139.c
+++ b/drivers/net/rtl8139.c
@@ -489,7 +489,7 @@ static int rtl_poll(struct eth_device *dev)
ring_offs = cur_rx % RX_BUF_LEN;
/* ring_offs is guaranteed being 4-byte aligned */
- rx_status = *(unsigned int *)(rx_ring + ring_offs);
+ rx_status = le32_to_cpu(*(unsigned int *)(rx_ring + ring_offs));
rx_size = rx_status >> 16;
rx_status &= 0xffff;