]> git.karo-electronics.de Git - linux-beck.git/commit
net: macb: Add big endian CPU support
authorArun Chandran <achandran@mvista.com>
Wed, 18 Feb 2015 11:29:35 +0000 (16:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 20:51:31 +0000 (15:51 -0500)
commita50dad355a5314da64586da36804b86fbebb7c2a
treee0b41be8f30ee85291d349454b32989bc7602e06
parent931c471af51565a6290d9fabbe14ed7c8fa4a317
net: macb: Add big endian CPU support

This patch converts all __raw_readl and __raw_writel function calls
to their corresponding readl_relaxed and writel_relaxed variants.

It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg
when the CPU is configured in big endian mode.

Signed-off-by: Arun Chandran <achandran@mvista.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h