From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 09 Jan 2008 11:47:46 +0100 Subject: [U-Boot-Users] PATCH: load ixp42x NPE firmware from separate flash block, remove dead code In-Reply-To: Your message of "Sat, 10 Nov 2007 16:44:12 +0100." <20071110154411.GA11163@discworld.dascon.de> Message-ID: <20080109104746.1481A6F0010@nyx.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20071110154411.GA11163@discworld.dascon.de> you wrote: > > the following patch adds support to move the IXP42X NPE firmware to a > separate flash block, whose start address is defined in > CONFIG_IXP4XX_NPE_EXT_UCODE_BASE. Using that, it is possible to build > NPE-enabled u-boot without copyright problems due to the NPE firmware. > > I have also removed some unused code (#if 0 currently - should we completely > remove those unused parts?) > > I hope the patch applies, I get whitespace-related differences in the NPE > files due to trailing whitespace in the original versions. > > Signed-off-by: Michael Schwingen I appreciate this patch, yet I have to NAK it in it's current form. > diff --git a/cpu/ixp/npe/IxNpeDl.c b/cpu/ixp/npe/IxNpeDl.c > index ffe355c..572f314 100644 > --- a/cpu/ixp/npe/IxNpeDl.c > +++ b/cpu/ixp/npe/IxNpeDl.c > @@ -108,6 +108,7 @@ static BOOL ixNpeDlNpeStarted[IX_NPEDL_NPEID_MAX] ={FALSE, FALSE, FALSE} ; > PRIVATE IX_STATUS > ixNpeDlNpeInitAndStartInternal (UINT32 *imageLibrary, UINT32 imageId); > > +#if 0 > /* > * Function definition: ixNpeDlMicrocodeImageLibraryOverride > */ > @@ -139,6 +140,7 @@ ixNpeDlMicrocodeImageLibraryOverride (UINT32 *clientImageLibrary) > "status = %d\n", status); > return status; > } > +#endif ... > +#if 0 ... > +#endif etc. Please don't do this - instead, remove the dead code. We have a source code management system to track such changes. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de C++ was an interesting and valuable experiment, but we've learned its lessons and it's time to move on. - Peter Curran in