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] FIX: dataflash.c
Date: Sun, 19 Aug 2007 02:50:29 +0200	[thread overview]
Message-ID: <20070819005029.7D7AD246C5@gemini.denx.de> (raw)
In-Reply-To: Your message of "Sun, 19 Aug 2007 01:12:06 +0200." <20070818231206.GA4040@gandalf.sssup.it>

In message <20070818231206.GA4040@gandalf.sssup.it> you wrote:
> Change in dataflash.c for fixing
> 
> Signed-off-by: Trimarchi Michael <trimarchimichael@yahoo.it>
> 
> ---
> 
> --- drivers/dataflash.c.orig	2007-08-18 17:36:08.000000000 +0200
> +++ drivers/dataflash.c	2007-08-18 17:37:05.000000000 +0200
> @@ -27,16 +27,16 @@ AT91S_DATAFLASH_INFO dataflash_info[CFG_
>  static AT91S_DataFlash DataFlashInst;
>  
>  #ifdef CONFIG_AT91SAM9260EK
> -int cs[][CFG_MAX_DATAFLASH_BANKS] = {
> +int cs[][2] = {
>  	{CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},	/* Logical adress, CS */
>  	{CFG_DATAFLASH_LOGIC_ADDR_CS1, 1}
>  };
>  #elif defined(CONFIG_AT91SAM9263EK)
> -int cs[][CFG_MAX_DATAFLASH_BANKS] = {
> +int cs[][2] = {
>  	{CFG_DATAFLASH_LOGIC_ADDR_CS0, 0}	/* Logical adress, CS */
>  };
>  #else
> -int cs[][CFG_MAX_DATAFLASH_BANKS] = {
> +int cs[][2] = {
>  	{CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},	/* Logical adress, CS */
>  	{CFG_DATAFLASH_LOGIC_ADDR_CS3, 3}
>  };

I hereby reject this patch.

Replacing a configuration option by a hardwired constant which is
probably wrong on most of the boards is definitely a Bad Thing.

Also, you did not even mention what sort of problem you are trying to
fix.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is an order of things in this universe.
	-- Apollo, "Who Mourns for Adonais?" stardate 3468.1

       reply	other threads:[~2007-08-19  0:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070818231206.GA4040@gandalf.sssup.it>
2007-08-19  0:50 ` Wolfgang Denk [this message]
2007-08-19  3:24   ` [U-Boot-Users] FIX: dataflash.c Michael Trimarchi
2007-08-19 12:51     ` Ulf Samuelsson
2007-08-19  3:37   ` Michael Trimarchi
2007-08-19 13:04     ` Ulf Samuelsson
2007-08-19 19:27       ` Michael Trimarchi
2007-08-19 19:29       ` Michael Trimarchi
2007-08-19 21:37   ` Håvard Skinnemoen
2007-08-19 23:29     ` Wolfgang Denk
2007-08-19 23:56       ` trimarchi at gandalf.sssup.it
2007-08-20  5:26       ` Ulf Samuelsson
2007-08-29  0:00         ` Wolfgang Denk
2007-08-19 23:40     ` trimarchi at gandalf.sssup.it
2007-08-20  5:29       ` Ulf Samuelsson

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=20070819005029.7D7AD246C5@gemini.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