Commit bdd70b99 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by David S. Miller

net: broadcom: bcm4908_enet: fix endianness in xmit code

Use le32_to_cpu() for reading __le32 struct field filled by hw.
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 195e2d9f
...@@ -476,7 +476,7 @@ static int bcm4908_enet_start_xmit(struct sk_buff *skb, struct net_device *netde ...@@ -476,7 +476,7 @@ static int bcm4908_enet_start_xmit(struct sk_buff *skb, struct net_device *netde
/* Free transmitted skbs */ /* Free transmitted skbs */
while (ring->read_idx != ring->write_idx) { while (ring->read_idx != ring->write_idx) {
buf_desc = &ring->buf_desc[ring->read_idx]; buf_desc = &ring->buf_desc[ring->read_idx];
if (buf_desc->ctl & DMA_CTL_STATUS_OWN) if (le32_to_cpu(buf_desc->ctl) & DMA_CTL_STATUS_OWN)
break; break;
slot = &ring->slots[ring->read_idx]; slot = &ring->slots[ring->read_idx];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment