Skip to contentSkip to conversation

AT49BV322A Flash: the erase regions are in the wrong order.

PATCH Superseded David Wu 2 participants 2 messages Apr 9, 2010 – Apr 13, 2010 Memory technology devices (MTD)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

David Wu

author
#0 lore raw

PATCH 1/1 AT49BV322A Flash: the erase regions are in the wrong order.

      The device id for this Flash is 0xc8.
---
    drivers/mtd/cfi_flash.c |    4 +++-
    1 files changed, 3 insertions(+), 1 deletions(-)
drivers/mtd/cfi_flash.c +0 -0
index fdba297..af86f99 100644
@@ -1690,8 +1690,10 @@ static void flash_fixup_atmel(flash_info_t *info,

struct cfi_qry *qry)
/* AT49BV6416(T) list the erase regions in the wrong order.
* However, the device ID is identical with the non-broken
* AT49BV642D they differ in the high byte.
+ * AT49BV322A is also in the wrong order.

    	 */
-	if (info->device_id == 0xd6 || info->device_id == 0xd2)
+	if (info->device_id == 0xd6 || info->device_id == 0xd2 ||
+	    info->device_id == 0xc8)
    		reverse_geometry = !reverse_geometry;

    	if (reverse_geometry)
Signature · 1 line
1.5.6
#1 lore raw

PATCH 1/1 AT49BV322A Flash: the erase regions are in the wrong order.

Hi David,

I just tried to apply your patch, but unfortunately it's line wrapped (see below). Please fix and resubmit. Thanks.

drivers/mtd/cfi_flash.c static void flash_fixup_atmel(flash_info_t *info, · line 1690

Quoted 13 lines · On Friday 09 April 2010 17:11:50 David Wu wrote:
      The device id for this Flash is 0xc8.
---
    drivers/mtd/cfi_flash.c |    4 +++-
    1 files changed, 3 insertions(+), 1 deletions(-)
drivers/mtd/cfi_flash.c +0 -0
index fdba297..af86f99 100644
@@ -1690,8 +1690,10 @@ static void flash_fixup_atmel(flash_info_t *info,
 struct cfi_qry *qry)

Here is the wrapping!!!

Cheers,
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