diff options
author | Eric Jarrige <eric.jarrige@armadeus.org> | 2010-04-15 22:03:19 (GMT) |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2010-05-03 21:52:49 (GMT) |
commit | 2e236bf28e729aca28e60c153dd8f913d1b3d058 (patch) | |
tree | 2c824163faab5372c078ce3a0d190c5c0391d5f4 /drivers | |
parent | 538be58568542aac2ed4bdf4c05398cfa67e98f0 (diff) | |
download | u-boot-2e236bf28e729aca28e60c153dd8f913d1b3d058.tar.xz |
fec_mxc.c: Fix MX27 FEC MAC validity check
Fix MX27 FEC logic to check validity of the MAC address in fuse.
Only null (empty fuse) or invalid MAC address was retrieved from mx27 fuses before this change.
Signed-off-by: Eric Jarrige <jorasse@armadeus.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/fec_mxc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index fdc288c..68be747 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -325,7 +325,7 @@ static int fec_get_hwaddr(struct eth_device *dev, unsigned char *mac) for (i = 0; i < 6; i++) mac[6-1-i] = readl(&iim->iim_bank_area0[IIM0_MAC + i]); - return is_valid_ether_addr(mac); + return !is_valid_ether_addr(mac); #endif } |