public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Amit Virdi <amit.virdi@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] NAND: Remove ONFI detection message to from bootup log
Date: Wed, 9 May 2012 14:59:44 +0530	[thread overview]
Message-ID: <4FAA3908.5050304@st.com> (raw)
In-Reply-To: <1336462170-21112-1-git-send-email-sr@denx.de>

Stefan,

On 5/8/2012 12:59 PM, Stefan Roese wrote:
> Without this patch, boot shows this messages upon NAND detection:
>
> NAND:  ONFI flash detected
> ONFI param page 0 valid
> ONFI flash detected
> ONFI param page 0 valid
> 128 MiB
>
> With this patch, its back to the U-Boot "standard":
>
> NAND:  128 MiB
>
> Tested on x600 (SPEAr600).
>
> Signed-off-by: Stefan Roese<sr@denx.de>
> Cc: Amit Virdi<amit.virdi@st.com>
> Cc: Vipin Kumar<vipin.kumar@st.com>
> Cc: Scott Wood<scottwood@freescale.com>
> ---
>   drivers/mtd/nand/nand_base.c |    5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
> index bef79be..bfd668f 100644
> --- a/drivers/mtd/nand/nand_base.c
> +++ b/drivers/mtd/nand/nand_base.c
> @@ -2530,13 +2530,14 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip,
>   		chip->read_byte(mtd) != 'F' || chip->read_byte(mtd) != 'I')
>   		return 0;
>
> -	printk(KERN_INFO "ONFI flash detected\n");
> +	MTDDEBUG(MTD_DEBUG_LEVEL0, "ONFI flash detected\n");
>   	chip->cmdfunc(mtd, NAND_CMD_PARAM, 0, -1);
>   	for (i = 0; i<  3; i++) {
>   		chip->read_buf(mtd, (uint8_t *)p, sizeof(*p));
>   		if (onfi_crc16(ONFI_CRC_BASE, (uint8_t *)p, 254) ==
>   				le16_to_cpu(p->crc)) {
> -			printk(KERN_INFO "ONFI param page %d valid\n", i);
> +			MTDDEBUG(MTD_DEBUG_LEVEL0,
> +				 "ONFI param page %d valid\n", i);
>   			break;
>   		}
>   	}

Acked-by: Amit Virdi <amit.virdi@st.com>

Regards
Amit Virdi

  reply	other threads:[~2012-05-09  9:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08  7:29 [U-Boot] [PATCH] NAND: Remove ONFI detection message to from bootup log Stefan Roese
2012-05-09  9:29 ` Amit Virdi [this message]
2012-05-18 23:19 ` [U-Boot] " Scott Wood
2012-05-21 22:50   ` stefan at roese.nl

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=4FAA3908.5050304@st.com \
    --to=amit.virdi@st.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