Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] mtd: chips: Add SST38VF640x NOR-flashes
  2010-10-19  2:06 [PATCH] mtd: chips: Add SST38VF640x NOR-flashes zhangyd
@ 2010-10-18 14:56 ` Wolfram Sang
  2010-10-18 15:00   ` yidong zhang
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfram Sang @ 2010-10-18 14:56 UTC (permalink / raw)
  To: zhangyd; +Cc: Artem.Bityutskiy, ladis, dwmw2, linux-kernel, linux-mtd

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On Mon, Oct 18, 2010 at 10:06:50PM -0400, zhangyd wrote:
> Du to the wrong sector size description(The actual sector size is
> 8KBytes/sector, but the reporting size is 64KBytes/sector),you can get
> the wrong size of the memory. So they should be moved to the jedec_probe.
> 
> Signed-off-by: yidong zhang<zhangyd6@gmail.com>

NACK as long as Guillaume has not finished updating the SST-support for CFI. He
said he is working on this at the moment, let's give him a chance to finish :)

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mtd: chips: Add SST38VF640x NOR-flashes
  2010-10-18 14:56 ` Wolfram Sang
@ 2010-10-18 15:00   ` yidong zhang
  0 siblings, 0 replies; 5+ messages in thread
From: yidong zhang @ 2010-10-18 15:00 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Artem.Bityutskiy, ladis, dwmw2, linux-kernel, linux-mtd

On Mon, Oct 18, 2010 at 10:56 PM, Wolfram Sang <w.sang@pengutronix.de> wrote:
> On Mon, Oct 18, 2010 at 10:06:50PM -0400, zhangyd wrote:
>> Du to the wrong sector size description(The actual sector size is
>> 8KBytes/sector, but the reporting size is 64KBytes/sector),you can get
>> the wrong size of the memory. So they should be moved to the jedec_probe.
>>
>> Signed-off-by: yidong zhang<zhangyd6@gmail.com>
>
> NACK as long as Guillaume has not finished updating the SST-support for CFI. He
> said he is working on this at the moment, let's give him a chance to finish :)

OK , Thanks!

> --
> Pengutronix e.K.                           | Wolfram Sang                |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAky8YBQACgkQD27XaX1/VRtz6ACeMLJleCWrFki71rpj+0ELYala
> A8sAnA6Frg62shANhZn7xEW1196rHBxr
> =P1xd
> -----END PGP SIGNATURE-----
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] mtd: chips: Add SST38VF640x NOR-flashes
@ 2010-10-19  2:06 zhangyd
  2010-10-18 14:56 ` Wolfram Sang
  0 siblings, 1 reply; 5+ messages in thread
From: zhangyd @ 2010-10-19  2:06 UTC (permalink / raw)
  To: dwmw2; +Cc: Artem.Bityutskiy, ladis, zhangyd, w.sang, linux-kernel, linux-mtd

Du to the wrong sector size description(The actual sector size is
8KBytes/sector, but the reporting size is 64KBytes/sector),you can get
the wrong size of the memory. So they should be moved to the jedec_probe.

Signed-off-by: yidong zhang<zhangyd6@gmail.com>
---
 drivers/mtd/chips/jedec_probe.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index d72a5fb..0e8df3b 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -163,6 +163,7 @@
 #define SST49LF030A	0x001C
 #define SST49LF040A	0x0051
 #define SST49LF080A	0x005B
+#define SST38VF6401	0x536B
 #define SST36VF3203	0x7354
 
 /* Toshiba */
@@ -1568,6 +1569,16 @@ static const struct amd_flash_info jedec_table[] = {
 			ERASEINFO(0x10000,64),
 		}
 	}, {
+		.mfr_id		= CFI_MFR_SST,
+		.dev_id		= SST38VF6401,
+		.name		= "SST 38VF6401",
+		.devtypes	= CFI_DEVICETYPE_X16,
+		.cmd_set	= P_ID_AMD_STD,
+		.nr_regions	= 1,
+		.regions	= {
+			ERASEINFO(0x10000,128),
+		}
+	}, {
 		.mfr_id		= CFI_MFR_ST,
 		.dev_id		= M29F800AB,
 		.name		= "ST M29F800AB",
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] mtd: chips: add SST38VF640x nor-flashes
  2010-10-22  2:53 [PATCH] mtd: chips: add SST38VF640x nor-flashes zhangyd
@ 2010-10-21 17:10 ` Wolfram Sang
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2010-10-21 17:10 UTC (permalink / raw)
  To: zhangyd; +Cc: dwmw2, glecerf, linux-mtd

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

On Thu, Oct 21, 2010 at 10:53:42PM -0400, zhangyd wrote:
> Due to broken CFI, these flashes should be operated in jedec probe mode.
> When you operate them in the CFI probe mode, you will get the wrong sector
> size.And it will fail to set up the flash during the probe(CFI mode).
> And i have tested it on my platform.
> 
> Signed-off-by: yidong zhang <zhangyd6@gmail.com>

Still NACK. Unless Guillaume doesn't come to the conclusion that JEDEC is
better, supporting him is the preferred option IMO.

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] mtd: chips: add SST38VF640x nor-flashes
@ 2010-10-22  2:53 zhangyd
  2010-10-21 17:10 ` Wolfram Sang
  0 siblings, 1 reply; 5+ messages in thread
From: zhangyd @ 2010-10-22  2:53 UTC (permalink / raw)
  To: glecerf; +Cc: linux-mtd, zhangyd, dwmw2, w.sang

Due to broken CFI, these flashes should be operated in jedec probe mode.
When you operate them in the CFI probe mode, you will get the wrong sector
size.And it will fail to set up the flash during the probe(CFI mode).
And i have tested it on my platform.

Signed-off-by: yidong zhang <zhangyd6@gmail.com>
---
 drivers/mtd/chips/jedec_probe.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index d72a5fb..21f07da 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -163,6 +163,7 @@
 #define SST49LF030A	0x001C
 #define SST49LF040A	0x0051
 #define SST49LF080A	0x005B
+#define SST38VF6401	0x536B
 #define SST36VF3203	0x7354
 
 /* Toshiba */
@@ -1557,6 +1558,18 @@ static const struct amd_flash_info jedec_table[] = {
 		}
 	}, {
 		.mfr_id		= CFI_MFR_SST,
+		.dev_id		= SST38VF6401,
+		.name		= "SST 38VF6401",
+		.devtypes	= CFI_DEVICETYPE_X16,
+		.uaddr		= MTD_UADDR_0x0AAA_0x0555,
+		.dev_size	= SIZE_8MiB,
+		.cmd_set	= P_ID_AMD_STD,
+		.nr_regions	= 1,
+		.regions	= {
+			ERASEINFO(0x10000,128),
+		}
+	}, {
+		.mfr_id		= CFI_MFR_SST,
 		.dev_id		= SST36VF3203,
 		.name		= "SST 36VF3203",
 		.devtypes	= CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-21 17:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19  2:06 [PATCH] mtd: chips: Add SST38VF640x NOR-flashes zhangyd
2010-10-18 14:56 ` Wolfram Sang
2010-10-18 15:00   ` yidong zhang
  -- strict thread matches above, loose matches on Subject: below --
2010-10-22  2:53 [PATCH] mtd: chips: add SST38VF640x nor-flashes zhangyd
2010-10-21 17:10 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox