All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] jedec_probe: Fix SST 16-bit chip detection
@ 2008-06-19  7:36 Atsushi Nemoto
  2008-06-19 11:04   ` Greg KH
  2008-06-19 17:21 ` David Woodhouse
  0 siblings, 2 replies; 10+ messages in thread
From: Atsushi Nemoto @ 2008-06-19  7:36 UTC (permalink / raw)
  To: linux-mtd; +Cc: David Woodhouse, linux-kernel, stable

The unlock_addr rework in kernel 2.6.25 breaks 16-bit SST chips.  SST
39LF160 and SST 39VF1601 are both 16-bit only chip and new uaddr value
is not correct for them.  Add MTD_UADDR_0xAAAA_0x5555 for those chips.
Tested with SST 39VF1601 chip.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 drivers/mtd/chips/jedec_probe.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index aa07575..97395be 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -191,6 +191,7 @@ enum uaddr {
 	MTD_UADDR_0x0555_0x0AAA,
 	MTD_UADDR_0x5555_0x2AAA,
 	MTD_UADDR_0x0AAA_0x0555,
+	MTD_UADDR_0xAAAA_0x5555,
 	MTD_UADDR_DONT_CARE,		/* Requires an arbitrary address */
 	MTD_UADDR_UNNECESSARY,		/* Does not require any address */
 };
@@ -238,6 +239,11 @@ static const struct unlock_addr  unlock_addrs[] = {
 		.addr2 = 0x0555
 	},
 
+	[MTD_UADDR_0xAAAA_0x5555] = {
+		.addr1 = 0xaaaa,
+		.addr2 = 0x5555
+	},
+
 	[MTD_UADDR_DONT_CARE] = {
 		.addr1 = 0x0000,      /* Doesn't matter which address */
 		.addr2 = 0x0000       /* is used - must be last entry */
@@ -1392,8 +1398,8 @@ static const struct amd_flash_info jedec_table[] = {
 		.mfr_id		= MANUFACTURER_SST,     /* should be CFI */
 		.dev_id		= SST39LF160,
 		.name		= "SST 39LF160",
-		.devtypes	= CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
-		.uaddr		= MTD_UADDR_0x5555_0x2AAA,	/* ???? */
+		.devtypes	= CFI_DEVICETYPE_X16,
+		.uaddr		= MTD_UADDR_0xAAAA_0x5555,
 		.dev_size	= SIZE_2MiB,
 		.cmd_set	= P_ID_AMD_STD,
 		.nr_regions	= 2,
@@ -1405,8 +1411,8 @@ static const struct amd_flash_info jedec_table[] = {
 		.mfr_id		= MANUFACTURER_SST,     /* should be CFI */
 		.dev_id		= SST39VF1601,
 		.name		= "SST 39VF1601",
-		.devtypes	= CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
-		.uaddr		= MTD_UADDR_0x5555_0x2AAA,	/* ???? */
+		.devtypes	= CFI_DEVICETYPE_X16,
+		.uaddr		= MTD_UADDR_0xAAAA_0x5555,
 		.dev_size	= SIZE_2MiB,
 		.cmd_set	= P_ID_AMD_STD,
 		.nr_regions	= 2,

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

* Re: [stable] [PATCH] jedec_probe: Fix SST 16-bit chip detection
  2008-06-19  7:36 [PATCH] jedec_probe: Fix SST 16-bit chip detection Atsushi Nemoto
@ 2008-06-19 11:04   ` Greg KH
  2008-06-19 17:21 ` David Woodhouse
  1 sibling, 0 replies; 10+ messages in thread
From: Greg KH @ 2008-06-19 11:04 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mtd, David Woodhouse, linux-kernel, stable

On Thu, Jun 19, 2008 at 04:36:48PM +0900, Atsushi Nemoto wrote:
> The unlock_addr rework in kernel 2.6.25 breaks 16-bit SST chips.  SST
> 39LF160 and SST 39VF1601 are both 16-bit only chip and new uaddr value
> is not correct for them.  Add MTD_UADDR_0xAAAA_0x5555 for those chips.
> Tested with SST 39VF1601 chip.
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

In the future, if you want something to go into the stable tree, just
add:
	cc: stable <stable@kernel.org>
to the signed-off-by area of the patch and we will be automatically
notifed when it goes into Linus's tree and will then add it to the
-stable tree.

Otherwise it's a pain to try to track when a patch goes into mainline.

Can you notify us when this patch is accepted?

thanks,

greg k-h

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

* Re: [stable] [PATCH] jedec_probe: Fix SST 16-bit chip detection
@ 2008-06-19 11:04   ` Greg KH
  0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2008-06-19 11:04 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: David Woodhouse, linux-mtd, linux-kernel, stable

On Thu, Jun 19, 2008 at 04:36:48PM +0900, Atsushi Nemoto wrote:
> The unlock_addr rework in kernel 2.6.25 breaks 16-bit SST chips.  SST
> 39LF160 and SST 39VF1601 are both 16-bit only chip and new uaddr value
> is not correct for them.  Add MTD_UADDR_0xAAAA_0x5555 for those chips.
> Tested with SST 39VF1601 chip.
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

In the future, if you want something to go into the stable tree, just
add:
	cc: stable <stable@kernel.org>
to the signed-off-by area of the patch and we will be automatically
notifed when it goes into Linus's tree and will then add it to the
-stable tree.

Otherwise it's a pain to try to track when a patch goes into mainline.

Can you notify us when this patch is accepted?

thanks,

greg k-h

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

* Re: [stable] [PATCH] jedec_probe: Fix SST 16-bit chip detection
  2008-06-19 11:04   ` Greg KH
@ 2008-06-19 15:04     ` Atsushi Nemoto
  -1 siblings, 0 replies; 10+ messages in thread
From: Atsushi Nemoto @ 2008-06-19 15:04 UTC (permalink / raw)
  To: greg; +Cc: linux-mtd, dwmw2, linux-kernel, stable

On Thu, 19 Jun 2008 04:04:18 -0700, Greg KH <greg@kroah.com> wrote:
> In the future, if you want something to go into the stable tree, just
> add:
> 	cc: stable <stable@kernel.org>
> to the signed-off-by area of the patch and we will be automatically
> notifed when it goes into Linus's tree and will then add it to the
> -stable tree.
> 
> Otherwise it's a pain to try to track when a patch goes into mainline.

Sure.  Will do next time.  I had misunderstand the statement in
stable_kernel_rules.txt, as CC: in mail header (not S-O-B area) is
enough.  Thank you.

> Can you notify us when this patch is accepted?

Sure too.
---
Atsushi Nemoto

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

* Re: [stable] [PATCH] jedec_probe: Fix SST 16-bit chip detection
@ 2008-06-19 15:04     ` Atsushi Nemoto
  0 siblings, 0 replies; 10+ messages in thread
From: Atsushi Nemoto @ 2008-06-19 15:04 UTC (permalink / raw)
  To: greg; +Cc: dwmw2, linux-mtd, linux-kernel, stable

On Thu, 19 Jun 2008 04:04:18 -0700, Greg KH <greg@kroah.com> wrote:
> In the future, if you want something to go into the stable tree, just
> add:
> 	cc: stable <stable@kernel.org>
> to the signed-off-by area of the patch and we will be automatically
> notifed when it goes into Linus's tree and will then add it to the
> -stable tree.
> 
> Otherwise it's a pain to try to track when a patch goes into mainline.

Sure.  Will do next time.  I had misunderstand the statement in
stable_kernel_rules.txt, as CC: in mail header (not S-O-B area) is
enough.  Thank you.

> Can you notify us when this patch is accepted?

Sure too.
---
Atsushi Nemoto

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

* Re: [PATCH] jedec_probe: Fix SST 16-bit chip detection
  2008-06-19  7:36 [PATCH] jedec_probe: Fix SST 16-bit chip detection Atsushi Nemoto
  2008-06-19 11:04   ` Greg KH
@ 2008-06-19 17:21 ` David Woodhouse
  2008-06-20  5:08     ` Stefan Roese
  1 sibling, 1 reply; 10+ messages in thread
From: David Woodhouse @ 2008-06-19 17:21 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mtd, linux-kernel, stable

On Thu, 2008-06-19 at 16:36 +0900, Atsushi Nemoto wrote:
> -               .devtypes       = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
> +               .devtypes       = CFI_DEVICETYPE_X16,

I believe you about the uaddr -- but can these devices really not be
used in 8-bit mode?

-- 
dwmw2


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

* Re: [PATCH] jedec_probe: Fix SST 16-bit chip detection
  2008-06-19 17:21 ` David Woodhouse
@ 2008-06-20  5:08     ` Stefan Roese
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Roese @ 2008-06-20  5:08 UTC (permalink / raw)
  To: linux-mtd; +Cc: David Woodhouse, Atsushi Nemoto, linux-kernel, stable

On Thursday 19 June 2008, David Woodhouse wrote:
> On Thu, 2008-06-19 at 16:36 +0900, Atsushi Nemoto wrote:
> > -               .devtypes       = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
> > +               .devtypes       = CFI_DEVICETYPE_X16,
>
> I believe you about the uaddr -- but can these devices really not be
> used in 8-bit mode?

No. They are 16-bit only.

Best regards,
Stefan

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

* Re: [PATCH] jedec_probe: Fix SST 16-bit chip detection
@ 2008-06-20  5:08     ` Stefan Roese
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Roese @ 2008-06-20  5:08 UTC (permalink / raw)
  To: linux-mtd; +Cc: Atsushi Nemoto, David Woodhouse, linux-kernel, stable

On Thursday 19 June 2008, David Woodhouse wrote:
> On Thu, 2008-06-19 at 16:36 +0900, Atsushi Nemoto wrote:
> > -               .devtypes       = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
> > +               .devtypes       = CFI_DEVICETYPE_X16,
>
> I believe you about the uaddr -- but can these devices really not be
> used in 8-bit mode?

No. They are 16-bit only.

Best regards,
Stefan

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

* Re: [PATCH] jedec_probe: Fix SST 16-bit chip detection
  2008-06-20  5:08     ` Stefan Roese
@ 2008-06-20 17:53       ` Atsushi Nemoto
  -1 siblings, 0 replies; 10+ messages in thread
From: Atsushi Nemoto @ 2008-06-20 17:53 UTC (permalink / raw)
  To: sr; +Cc: linux-mtd, dwmw2, linux-kernel, stable

On Fri, 20 Jun 2008 07:08:37 +0200, Stefan Roese <sr@denx.de> wrote:
> > I believe you about the uaddr -- but can these devices really not be
> > used in 8-bit mode?
> 
> No. They are 16-bit only.

Right.  They do not have BYTE# pin, according to their datasheets:

http://www.sst.com/downloads/datasheet/S71145.pdf
http://www.sst.com/downloads/datasheet/S71223.pdf

---
Atsushi Nemoto

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

* Re: [PATCH] jedec_probe: Fix SST 16-bit chip detection
@ 2008-06-20 17:53       ` Atsushi Nemoto
  0 siblings, 0 replies; 10+ messages in thread
From: Atsushi Nemoto @ 2008-06-20 17:53 UTC (permalink / raw)
  To: sr; +Cc: dwmw2, linux-mtd, linux-kernel, stable

On Fri, 20 Jun 2008 07:08:37 +0200, Stefan Roese <sr@denx.de> wrote:
> > I believe you about the uaddr -- but can these devices really not be
> > used in 8-bit mode?
> 
> No. They are 16-bit only.

Right.  They do not have BYTE# pin, according to their datasheets:

http://www.sst.com/downloads/datasheet/S71145.pdf
http://www.sst.com/downloads/datasheet/S71223.pdf

---
Atsushi Nemoto

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

end of thread, other threads:[~2008-06-20 17:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-19  7:36 [PATCH] jedec_probe: Fix SST 16-bit chip detection Atsushi Nemoto
2008-06-19 11:04 ` [stable] " Greg KH
2008-06-19 11:04   ` Greg KH
2008-06-19 15:04   ` Atsushi Nemoto
2008-06-19 15:04     ` Atsushi Nemoto
2008-06-19 17:21 ` David Woodhouse
2008-06-20  5:08   ` Stefan Roese
2008-06-20  5:08     ` Stefan Roese
2008-06-20 17:53     ` Atsushi Nemoto
2008-06-20 17:53       ` Atsushi Nemoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.