summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/micrel/ks8851.h
diff options
context:
space:
mode:
authorTristram Ha <Tristram.Ha@micrel.com>2011-11-21 08:57:59 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-26 14:59:39 -0500
commit32f160d96514a15cc52b708d8a8b9742bc3acd5d (patch)
tree69dd57a9b0da0751d1fbece1e844b21225868416 /drivers/net/ethernet/micrel/ks8851.h
parenta9a8de214c91eecf596b3e79c7986b74ef17f4ec (diff)
KSZ8851-SNL: Fix MAC address change problem
When device is off it is under power saving mode. Changing the MAC address in that situation will result in the device not communicating as the first write to the MAC address register is not executed. Signed-off-by: Tristram Ha <Tristram.Ha@micrel.com> [ben@simtec.co.uk: cleaned up header] Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8851.h')
-rw-r--r--drivers/net/ethernet/micrel/ks8851.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.h b/drivers/net/ethernet/micrel/ks8851.h
index 537fb06e593..b2703a11d04 100644
--- a/drivers/net/ethernet/micrel/ks8851.h
+++ b/drivers/net/ethernet/micrel/ks8851.h
@@ -16,7 +16,7 @@
#define CCR_32PIN (1 << 0)
/* MAC address registers */
-#define KS_MAR(_m) 0x15 - (_m)
+#define KS_MAR(_m) (0x15 - (_m))
#define KS_MARL 0x10
#define KS_MARM 0x12
#define KS_MARH 0x14