public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: load ixp42x NPE firmware from separate flash block, remove dead code
Date: Wed, 09 Jan 2008 11:47:46 +0100	[thread overview]
Message-ID: <20080109104746.1481A6F0010@nyx.denx.de> (raw)
In-Reply-To: Your message of "Sat, 10 Nov 2007 16:44:12 +0100." <20071110154411.GA11163@discworld.dascon.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 <michael@schwingen.org>

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 <DCqM4z.BxB@isgtec.com>

      reply	other threads:[~2008-01-09 10:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-10 15:44 [U-Boot-Users] PATCH: load ixp42x NPE firmware from separate flash block, remove dead code Michael Schwingen
2008-01-09 10:47 ` Wolfgang Denk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080109104746.1481A6F0010@nyx.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox