diff options
author | Ben Dooks <ben@simtec.co.uk> | 2009-10-20 01:49:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-21 04:11:06 +0200 |
commit | 160d0fadaf7ce20e5bad26c8a955504b93c6a5ba (patch) | |
tree | b1f45760cbde7a0b9d819333fef930685e1b67e9 /drivers/net/ks8851.h | |
parent | KS8851: Add soft reset at probe time (diff) | |
download | linux-160d0fadaf7ce20e5bad26c8a955504b93c6a5ba.tar.xz linux-160d0fadaf7ce20e5bad26c8a955504b93c6a5ba.zip |
KS8851: Fix MAC address write order
The MAC address register was being written in the wrong order, so add
a new address macro to convert mac-address byte to register address and
a ks8851_wrreg8() function to write each byte without having to worry
about any difficult byte swapping.
Fixes a bug reported by Doong, Ping of Micrel.
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ks8851.h')
-rw-r--r-- | drivers/net/ks8851.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ks8851.h b/drivers/net/ks8851.h index 85abe147afbf..f52c312cc356 100644 --- a/drivers/net/ks8851.h +++ b/drivers/net/ks8851.h @@ -16,6 +16,7 @@ #define CCR_32PIN (1 << 0) /* MAC address registers */ +#define KS_MAR(_m) 0x15 - (_m) #define KS_MARL 0x10 #define KS_MARM 0x12 #define KS_MARH 0x14 |