From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id D6822DDDFA for ; Wed, 14 Feb 2007 16:28:42 +1100 (EST) Subject: Re: [PATCH] powerpc: add of_get_mac_address() and update fsl_soc.c to use it From: Benjamin Herrenschmidt To: Timur Tabi In-Reply-To: <45D29B80.2060705@freescale.com> References: <1171408247467-git-send-email-timur@freescale.com> <1171411219.20192.118.camel@localhost.localdomain> <45D29B80.2060705@freescale.com> Content-Type: text/plain Date: Wed, 14 Feb 2007 16:28:33 +1100 Message-Id: <1171430913.20192.134.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2007-02-13 at 23:17 -0600, Timur Tabi wrote: > Benjamin Herrenschmidt wrote: > >> + return get_property(np, "address", NULL); > > > > Since there is so much room for confusion with "address", please at > > least do some basic sanity checking, like check that it's size is 6 > > bytes and maybe that the multicast bit isn't set. > > Are you saying that some device trees have something *other* than a MAC > address in the 'address' property? Yes, old Apple gear in some nodes, though I don't think in network devices... Ben.