From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about M29W128G CFI QRY bug
Date: Tue, 14 Apr 2009 11:43:18 +0200 [thread overview]
Message-ID: <200904141143.18280.sr@denx.de> (raw)
In-Reply-To: <49E35BBE.5010509@RuggedCom.com>
Hi Richard,
On Monday 13 April 2009, Richard Retanubun wrote:
> As a follow up, This hack seems to fix the issue.
>
> diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
> index 631b969..d386143 100644
> --- a/drivers/mtd/cfi_flash.c
> +++ b/drivers/mtd/cfi_flash.c
> @@ -1691,7 +1691,7 @@ static int __flash_detect_cfi (flash_info_t * info,
> struct cfi_qry *qry) the reset command in both Intel and AMD variants, in
> the hope that AMD flash roms ignore the Intel command. */
> flash_write_cmd (info, 0, 0, AMD_CMD_RESET);
> - flash_write_cmd (info, 0, 0, FLASH_CMD_RESET);
> + //flash_write_cmd (info, 0, 0, FLASH_CMD_RESET);
>
> for (cfi_offset=0;
> cfi_offset < sizeof(flash_offset_cfi) / sizeof(uint);
>
>
> I don't like it because removes support for the Intel command set, no?
> Looks like "the hope" is now dashed by the M29W128G.
Let's quote the comment from the code above again for all users:
/* We do not yet know what kind of commandset to use, so we issue
the reset command in both Intel and AMD variants, in the hope
that AMD flash roms ignore the Intel command. */
flash_write_cmd (info, 0, 0, AMD_CMD_RESET);
flash_write_cmd (info, 0, 0, FLASH_CMD_RESET);
Yes, you could be correct here. This 2nd RESET command seems to break M29W128G
support.
> Any recommendation on how to proceed?
How is this problem solved in the Linux MTD driver (referring to your first
email and the link you posted there)?
Did you take a look at the CONFIG_SYS_FLASH_CFI_AMD_RESET define? I suggest
you give it a try and let me know if this helps.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2009-04-14 9:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 23:29 [U-Boot] Question about M29W128G CFI QRY bug Richard Retanubun
2009-04-13 15:35 ` Richard Retanubun
2009-04-14 9:43 ` Stefan Roese [this message]
2009-04-14 22:50 ` Richard Retanubun
2009-04-15 8:22 ` Stefan Roese
2009-04-15 13:34 ` Richard Retanubun
2009-04-15 14:30 ` Stefan Roese
2009-04-15 15:26 ` Stefan Roese
2009-05-01 21:29 ` Richard Retanubun
2009-10-27 14:27 ` Stefan Roese
2009-10-27 17:39 ` Richard Retanubun
2009-10-27 19:02 ` Wolfgang Denk
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=200904141143.18280.sr@denx.de \
--to=sr@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