summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Jarrige <eric.jarrige@armadeus.org>2010-04-16 00:03:19 +0200
committerBen Warren <biggerbadderben@gmail.com>2010-05-03 14:52:49 -0700
commit2e236bf28e729aca28e60c153dd8f913d1b3d058 (patch)
tree2c824163faab5372c078ce3a0d190c5c0391d5f4
parent538be58568542aac2ed4bdf4c05398cfa67e98f0 (diff)
downloadu-boot-imx-2e236bf28e729aca28e60c153dd8f913d1b3d058.zip
u-boot-imx-2e236bf28e729aca28e60c153dd8f913d1b3d058.tar.gz
u-boot-imx-2e236bf28e729aca28e60c153dd8f913d1b3d058.tar.bz2
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>
-rw-r--r--drivers/net/fec_mxc.c2
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
}