From: Eric Jarrige Date: Thu, 15 Apr 2010 22:03:19 +0000 (+0200) Subject: fec_mxc.c: Fix MX27 FEC MAC validity check X-Git-Tag: v2010.06-rc1~68^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e236bf28e729aca28e60c153dd8f913d1b3d058;p=u-boot 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 Signed-off-by: Ben Warren --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index fdc288c63a..68be74775c 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 }