From: Holger Brunck <holger.brunck@keymile.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mtd/cfi_flash: fix write problems for Numonyx P33/30 32 MBit flashs
Date: Thu, 09 Aug 2012 09:57:23 +0200 [thread overview]
Message-ID: <50236D63.5060309@keymile.com> (raw)
In-Reply-To: <5023542F.6060807@denx.de>
Hi Stefan,
On 08/09/2012 08:09 AM, Stefan Roese wrote:
> On 08/08/2012 04:52 PM, Holger Brunck wrote:
>> commit 54652991
>> Work around bug in Numonyx P33/P30 256-Mbit 65nm flash chips
>>
>> fixes a problem for Numonyx P33/P30 flashes for 256-Mbit, but this leads
>> to problems for smaller versions of this chip e.g. the 32Mbit version
>> with deviceid 0x16 on mgcoge. So move the code for this work around to
>> an own function and check previously manufacturer id and device id to
>> not break support for other flashes where this work around is not needed.
>>
>> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>> cc: Stefan Roese <sr@denx.de>
>> cc: Philippe De Muyter <phdm@macqel.be>
>> cc: Gerlando Falauto <gerlando.falauto@keymile.com>
>> ---
>> drivers/mtd/cfi_flash.c | 70 +++++++++++++++++++++++++++++++---------------
>> 1 files changed, 47 insertions(+), 23 deletions(-)
>>
>> diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
>> index 35294bc..690748d 100644
>> --- a/drivers/mtd/cfi_flash.c
>> +++ b/drivers/mtd/cfi_flash.c
>> @@ -1391,6 +1391,43 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
>> */
>> #ifdef CONFIG_SYS_FLASH_PROTECTION
>>
>> +#define INTEL_COMPAT 0x89
>> +#define DEV_ID_NUMONYX_256MBIT 0x8922
>
> Adding defines in the middle of the source is frowned upon.
>
> Why don't you use INTEL_MANUFACT from flash.h instead. And add the
> device id in this header as well? I would prefer this.
>
agreed, I'll prepare a v2. Thanks.
Regards
Holger
next prev parent reply other threads:[~2012-08-09 7:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 14:52 [U-Boot] [PATCH] mtd/cfi_flash: fix write problems for Numonyx P33/30 32 MBit flashs Holger Brunck
2012-08-09 6:09 ` Stefan Roese
2012-08-09 7:57 ` Holger Brunck [this message]
2012-08-09 8:22 ` [U-Boot] [PATCH v2] " Holger Brunck
2012-08-13 12:47 ` Stefan Roese
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=50236D63.5060309@keymile.com \
--to=holger.brunck@keymile.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