public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] This patch fix the usage of the "CE don't care"-type NAND chips
Date: Wed, 23 Feb 2011 10:32:05 -0600	[thread overview]
Message-ID: <20110223103205.39349b1a@schlenkerla> (raw)
In-Reply-To: <20110223112834.GB985@gandalf.sssup.it>

On Wed, 23 Feb 2011 12:28:34 +0100
Michael Trimarchi <trimarchi@gandalf.sssup.it> wrote:

> Change since V1:
> 
>    - add a better description

This part does not go in the changelog -- it should be below the --- line.

> Signed-off-by: Michael Trimarchi <michael@evidence.eu.com>
> Cc: Scott Wood <scottwood@freescale.com>
> ---
>  drivers/mtd/nand/atmel_nand.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
> index ab8bbb3..c167f77 100644
> --- a/drivers/mtd/nand/atmel_nand.c
> +++ b/drivers/mtd/nand/atmel_nand.c
> @@ -249,8 +249,18 @@ static void at91_nand_hwcontrol(struct mtd_info *mtd,
>  		if (ctrl & NAND_ALE)
>  			IO_ADDR_W |= CONFIG_SYS_NAND_MASK_ALE;
>  
> +		/*
> +		 * atmel_nand: don't require CONFIG_SYS_NAND_ENABLE_PIN
> +		 * If NCE is hooked up to NCS3, we don't need to (and can't)
> +		 * explicitly set the state of the NCE pin. Instead, the
> +		 * controller asserts it automatically as part of a
> +		 * command/data access. Only "CE don't care"-type NAND chips
> +		 * can be used in this manner.
> +		 */

This was meant for the changelog, not the code.  For the code, it seems
reasonably self-explanatory that if you don't have
CONFIG_SYS_NAND_ENABLE_PIN, you don't use it.

If you want to put a short comment in the code about this situation, fine
(though it really belongs in a README that documents
CONFIG_SYS_NAND_ENABLE_PIN instead), but the text above should go in the git
changelog.

-Scott

      parent reply	other threads:[~2011-02-23 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 11:28 [U-Boot] [PATCH V2] This patch fix the usage of the "CE don't care"-type NAND chips Michael Trimarchi
2011-02-23 11:42 ` Albert ARIBAUD
2011-02-23 12:10   ` Michael Trimarchi
2011-02-23 12:46     ` Wolfgang Denk
2011-02-23 16:32 ` Scott Wood [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=20110223103205.39349b1a@schlenkerla \
    --to=scottwood@freescale.com \
    --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