From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.217.172]) by ozlabs.org (Postfix) with ESMTP id 75797DDFCF for ; Thu, 7 May 2009 08:30:21 +1000 (EST) Received: by gxk20 with SMTP id 20so774152gxk.9 for ; Wed, 06 May 2009 15:30:19 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20090506220119.7322783420E8@gemini.denx.de> References: <1241640919-4650-1-git-send-email-wd@denx.de> <1241640919-4650-3-git-send-email-wd@denx.de> <20090506220119.7322783420E8@gemini.denx.de> From: Grant Likely Date: Wed, 6 May 2009 16:29:59 -0600 Message-ID: Subject: Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support. To: Wolfgang Denk Content-Type: text/plain; charset=ISO-8859-1 Cc: Piotr Ziecik , Detlev Zundel , netdev@vger.kernel.org, linuxppc-dev@ozlabs.org, John Rigby List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, May 6, 2009 at 4:01 PM, Wolfgang Denk wrote: > Dear Grant, > > in message = you wrote: >> > ... >> > #ifdef CONFIG_FS_ENET_HAS_FEC >> > +#ifdef CONFIG_FS_ENET_MPC5121_FEC >> > + =A0 =A0{ >> > + =A0 =A0 =A0 =A0.compatible =3D "fsl,mpc5121-fec", >> > + =A0 =A0 =A0 =A0.data =3D (void *)&fs_fec_ops, >> > + =A0 =A0}, >> > +#else >> > =A0 =A0{ >> > =A0 =A0 =A0 =A0.compatible =3D "fsl,pq1-fec-enet", >> > =A0 =A0 =A0 =A0.data =3D (void *)&fs_fec_ops, >> > =A0 =A0}, >> > #endif >> > +#endif >> >> Hmmm. =A0A lot of these #ifdefs in here. =A0Does this have a multiplatfo= rm >> impact? =A0Not to mention the fact that it's just plain ugly. =A0:-) > > Agreed that it's ugly, but duplicatio9ng the code would have been even > worse. I don't think that it has multiplatform - at least not as long > as you don't ask for one image that runs on 83xx and on 512x. Actually, I *am* asking for one image that runs on 83xx, 52xx and 521x. I already can and do build and test a single image which boots on all my 52xx boards, on my 8349 board, and on my G4 Mac. g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.