linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Do we remove from jedec_probe.c?
@ 2010-05-26 17:53 Wolfram Sang
  2010-06-01  9:55 ` Wolfram Sang
  2010-06-03 14:44 ` Carl-Daniel Hailfinger
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2010-05-26 17:53 UTC (permalink / raw)
  To: linux-mtd

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

Hi,

now that Guillaume introduced cfi-support for some SST-flashes, I wonder if
those can be removed from jedec_probe.c? Or should they stay for
backward-compatibility?

Proposed patch would look like this:

diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index d72a5fb..37fdff3 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -146,8 +146,6 @@
 #define SST29LE512	0x003d
 #define SST39LF800	0x2781
 #define SST39LF160	0x2782
-#define SST39VF1601	0x234b
-#define SST39VF3201	0x235b
 #define SST39WF1601	0x274b
 #define SST39WF1602	0x274a
 #define SST39LF512	0x00D4
@@ -1500,19 +1498,6 @@ static const struct amd_flash_info jedec_table[] = {
 			ERASEINFO(0x1000,256)
 		}
 	}, {
-		.mfr_id		= CFI_MFR_SST,     /* should be CFI */
-		.dev_id		= SST39VF1601,
-		.name		= "SST 39VF1601",
-		.devtypes	= CFI_DEVICETYPE_X16,
-		.uaddr		= MTD_UADDR_0xAAAA_0x5555,
-		.dev_size	= SIZE_2MiB,
-		.cmd_set	= P_ID_AMD_STD,
-		.nr_regions	= 2,
-		.regions	= {
-			ERASEINFO(0x1000,256),
-			ERASEINFO(0x1000,256)
-		}
-	}, {
 		/* CFI is broken: reports AMD_STD, but needs custom uaddr */
 		.mfr_id		= CFI_MFR_SST,
 		.dev_id		= SST39WF1601,
@@ -1541,21 +1526,6 @@ static const struct amd_flash_info jedec_table[] = {
 			ERASEINFO(0x1000,256)
 		}
 	}, {
-		.mfr_id		= CFI_MFR_SST,     /* should be CFI */
-		.dev_id		= SST39VF3201,
-		.name		= "SST 39VF3201",
-		.devtypes	= CFI_DEVICETYPE_X16,
-		.uaddr		= MTD_UADDR_0xAAAA_0x5555,
-		.dev_size	= SIZE_4MiB,
-		.cmd_set	= P_ID_AMD_STD,
-		.nr_regions	= 4,
-		.regions	= {
-			ERASEINFO(0x1000,256),
-			ERASEINFO(0x1000,256),
-			ERASEINFO(0x1000,256),
-			ERASEINFO(0x1000,256)
-		}
-	}, {
 		.mfr_id		= CFI_MFR_SST,
 		.dev_id		= SST36VF3203,
 		.name		= "SST 36VF3203",

-- 
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 related	[flat|nested] 4+ messages in thread

* Re: Do we remove from jedec_probe.c?
  2010-05-26 17:53 Do we remove from jedec_probe.c? Wolfram Sang
@ 2010-06-01  9:55 ` Wolfram Sang
  2010-06-01 10:13   ` Guillaume LECERF
  2010-06-03 14:44 ` Carl-Daniel Hailfinger
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2010-06-01  9:55 UTC (permalink / raw)
  To: linux-mtd

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

On Wed, May 26, 2010 at 07:53:20PM +0200, Wolfram Sang wrote:
> Hi,
> 
> now that Guillaume introduced cfi-support for some SST-flashes, I wonder if
> those can be removed from jedec_probe.c? Or should they stay for
> backward-compatibility?

Ping?

> 
> Proposed patch would look like this:
> 
> diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
> index d72a5fb..37fdff3 100644
> --- a/drivers/mtd/chips/jedec_probe.c
> +++ b/drivers/mtd/chips/jedec_probe.c
> @@ -146,8 +146,6 @@
>  #define SST29LE512	0x003d
>  #define SST39LF800	0x2781
>  #define SST39LF160	0x2782
> -#define SST39VF1601	0x234b
> -#define SST39VF3201	0x235b
>  #define SST39WF1601	0x274b
>  #define SST39WF1602	0x274a
>  #define SST39LF512	0x00D4
> @@ -1500,19 +1498,6 @@ static const struct amd_flash_info jedec_table[] = {
>  			ERASEINFO(0x1000,256)
>  		}
>  	}, {
> -		.mfr_id		= CFI_MFR_SST,     /* should be CFI */
> -		.dev_id		= SST39VF1601,
> -		.name		= "SST 39VF1601",
> -		.devtypes	= CFI_DEVICETYPE_X16,
> -		.uaddr		= MTD_UADDR_0xAAAA_0x5555,
> -		.dev_size	= SIZE_2MiB,
> -		.cmd_set	= P_ID_AMD_STD,
> -		.nr_regions	= 2,
> -		.regions	= {
> -			ERASEINFO(0x1000,256),
> -			ERASEINFO(0x1000,256)
> -		}
> -	}, {
>  		/* CFI is broken: reports AMD_STD, but needs custom uaddr */
>  		.mfr_id		= CFI_MFR_SST,
>  		.dev_id		= SST39WF1601,
> @@ -1541,21 +1526,6 @@ static const struct amd_flash_info jedec_table[] = {
>  			ERASEINFO(0x1000,256)
>  		}
>  	}, {
> -		.mfr_id		= CFI_MFR_SST,     /* should be CFI */
> -		.dev_id		= SST39VF3201,
> -		.name		= "SST 39VF3201",
> -		.devtypes	= CFI_DEVICETYPE_X16,
> -		.uaddr		= MTD_UADDR_0xAAAA_0x5555,
> -		.dev_size	= SIZE_4MiB,
> -		.cmd_set	= P_ID_AMD_STD,
> -		.nr_regions	= 4,
> -		.regions	= {
> -			ERASEINFO(0x1000,256),
> -			ERASEINFO(0x1000,256),
> -			ERASEINFO(0x1000,256),
> -			ERASEINFO(0x1000,256)
> -		}
> -	}, {
>  		.mfr_id		= CFI_MFR_SST,
>  		.dev_id		= SST36VF3203,
>  		.name		= "SST 36VF3203",
> 
> -- 
> Pengutronix e.K.                           | Wolfram Sang                |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |



> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/


-- 
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] 4+ messages in thread

* Re: Do we remove from jedec_probe.c?
  2010-06-01  9:55 ` Wolfram Sang
@ 2010-06-01 10:13   ` Guillaume LECERF
  0 siblings, 0 replies; 4+ messages in thread
From: Guillaume LECERF @ 2010-06-01 10:13 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-mtd

2010/6/1 Wolfram Sang <w.sang@pengutronix.de>:
> On Wed, May 26, 2010 at 07:53:20PM +0200, Wolfram Sang wrote:
>> Hi,
>>
>> now that Guillaume introduced cfi-support for some SST-flashes, I wonder if
>> those can be removed from jedec_probe.c? Or should they stay for
>> backward-compatibility?

May I add that SST39VF3201 (0x235b) jedec detection does not work, the
chip being mis-detected as SST49LF080A (0x005B).
This is because of this changeset [1] that checks for 8bit devices
before 16bits.

This may be the case for others chips whom IDs lower bits overlap.

[1] http://git.infradead.org/mtd-2.6.git/commitdiff/6170b43401a3230756ff76287ee07db0d75eddde
-- 
Guillaume LECERF
GeeXboX developer - www.geexbox.org

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

* Re: Do we remove from jedec_probe.c?
  2010-05-26 17:53 Do we remove from jedec_probe.c? Wolfram Sang
  2010-06-01  9:55 ` Wolfram Sang
@ 2010-06-03 14:44 ` Carl-Daniel Hailfinger
  1 sibling, 0 replies; 4+ messages in thread
From: Carl-Daniel Hailfinger @ 2010-06-03 14:44 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-mtd

Hi,

On 26.05.2010 19:53, Wolfram Sang wrote:
> now that Guillaume introduced cfi-support for some SST-flashes, I wonder if
> those can be removed from jedec_probe.c? Or should they stay for
> backward-compatibility?
>   

The userspace flashrom utility is getting support for those big SST NOR
flashes soon, so depending on whether you want these chips to host a
file system, flashrom may be an option.

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/

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

end of thread, other threads:[~2010-06-03 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26 17:53 Do we remove from jedec_probe.c? Wolfram Sang
2010-06-01  9:55 ` Wolfram Sang
2010-06-01 10:13   ` Guillaume LECERF
2010-06-03 14:44 ` Carl-Daniel Hailfinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).