Commit 0f0d84e5 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen Committed by Jeff Garzik

[PATCH] MACB: Use __raw register access

Since macb is a chip-internal device, use __raw_readl and
__raw_writel instead of readl/writel. This will perform native-endian
accesses, which is the right thing to do on both AVR32 and ARM devices.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent d836cae4
...@@ -264,7 +264,7 @@ static void macb_update_stats(struct macb *bp) ...@@ -264,7 +264,7 @@ static void macb_update_stats(struct macb *bp)
WARN_ON((unsigned long)(end - p - 1) != (MACB_TPF - MACB_PFR) / 4); WARN_ON((unsigned long)(end - p - 1) != (MACB_TPF - MACB_PFR) / 4);
for(; p < end; p++, reg++) for(; p < end; p++, reg++)
*p += readl(reg); *p += __raw_readl(reg);
} }
static void macb_periodic_task(struct work_struct *work) static void macb_periodic_task(struct work_struct *work)
......
...@@ -250,9 +250,9 @@ ...@@ -250,9 +250,9 @@
/* Register access macros */ /* Register access macros */
#define macb_readl(port,reg) \ #define macb_readl(port,reg) \
readl((port)->regs + MACB_##reg) __raw_readl((port)->regs + MACB_##reg)
#define macb_writel(port,reg,value) \ #define macb_writel(port,reg,value) \
writel((value), (port)->regs + MACB_##reg) __raw_writel((value), (port)->regs + MACB_##reg)
struct dma_desc { struct dma_desc {
u32 addr; u32 addr;
......
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