Skip to contentSkip to conversation

pxa3xx: fix timing and cmdset for samsung2GbX8

PATCH In review Axel Lin 5 participants 11 messages Aug 16, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 pxa3xx: fix timing and cmdset for samsung2GbX8

This patch adds timing settings for samsung2GbX8 and fixes the cmdset settings. samsung2GbX8 is large page.

---
 drivers/mtd/nand/pxa3xx_nand.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
drivers/mtd/nand/pxa3xx_nand.c +14 -2
index 4d89f37..47c0442 100644
@@ -227,9 +227,21 @@ static struct pxa3xx_nand_flash samsung512MbX16 = {
 	.chip_id	= 0x46ec,
 };
 
+static struct pxa3xx_nand_timing samsung2GbX8_timing = {
+	.tCH	= 5,
+	.tCS	= 20,
+	.tWH	= 10,
+	.tWP	= 12,
+	.tRH	= 10,
+	.tRP	= 12,
+	.tR	= 25000,
+	.tWHR	= 60,
+	.tAR	= 10,
+};
+
 static struct pxa3xx_nand_flash samsung2GbX8 = {
-	.timing		= &samsung512MbX16_timing,
-	.cmdset		= &smallpage_cmdset,
+	.timing		= &samsung2GbX8_timing,
+	.cmdset		= &largepage_cmdset,
 	.page_per_block	= 64,
 	.page_size	= 2048,
 	.flash_width	= 8,
Signature · 1 line
1.7.2
#1 lore raw

Cc'ed Lei and Haojian.

Quoted 42 lines · Axel Lin

This patch adds timing settings for samsung2GbX8 and fixes the cmdset settings. samsung2GbX8 is large page.

---
 drivers/mtd/nand/pxa3xx_nand.c |   16 ++++++++++++++--

 1 files changed, 14 insertions(+), 2 deletions(-)
drivers/mtd/nand/pxa3xx_nand.c +14 -3
index 4d89f37..47c0442 100644
@@ -227,9 +227,21 @@ static struct pxa3xx_nand_flash samsung512MbX16 = {
        .chip_id        = 0x46ec,
  };
 
+static struct pxa3xx_nand_timing samsung2GbX8_timing = {
+       .tCH    = 5,
+       .tCS    = 20,
+       .tWH    = 10,
+       .tWP    = 12,
+       .tRH    = 10,
+       .tRP    = 12,
+       .tR     = 25000,
+       .tWHR   = 60,
+       .tAR    = 10,
+};
+
  static struct pxa3xx_nand_flash samsung2GbX8 = {
-       .timing         = &samsung512MbX16_timing,
-       .cmdset         = &smallpage_cmdset,
+       .timing         = &samsung2GbX8_timing,
+       .cmdset         = &largepage_cmdset,
        .page_per_block = 64,
        .page_size      = 2048,
        .flash_width    = 8,
--

1.7.2

#2 lore raw

Hi Axel,

I suggest not merge your patch into mainline code. Since I have a large series of patch which reconstruct the nand flash definition, this fix would no longer be needed.

Thanks,
Lei

-----Original Message-----
From: Eric Miao [mailto:[email protected]]
Sent: 2010年8月16日 20:22
To: Axel Lin
Cc: linux-kernel; David Woodhouse; [email protected]; Lei Wen; Haojian Zhuang
Subject: Re: [PATCH] [MTD] [NAND] pxa3xx: fix timing and cmdset for samsung2GbX8

Cc'ed Lei and Haojian.

Quoted 37 lines · Axel Lin

This patch adds timing settings for samsung2GbX8 and fixes the cmdset settings. samsung2GbX8 is large page.

---
 drivers/mtd/nand/pxa3xx_nand.c |   16 ++++++++++++++--

 1 files changed, 14 insertions(+), 2 deletions(-)
drivers/mtd/nand/pxa3xx_nand.c +14 -3
index 4d89f37..47c0442 100644
@@ -227,9 +227,21 @@ static struct pxa3xx_nand_flash samsung512MbX16 = {
        .chip_id        = 0x46ec,
  };
 
+static struct pxa3xx_nand_timing samsung2GbX8_timing = {
+       .tCH    = 5,
+       .tCS    = 20,
+       .tWH    = 10,
+       .tWP    = 12,
+       .tRH    = 10,
+       .tRP    = 12,
+       .tR     = 25000,
+       .tWHR   = 60,
+       .tAR    = 10,
+};
+
  static struct pxa3xx_nand_flash samsung2GbX8 = {
-       .timing         = &samsung512MbX16_timing,
-       .cmdset         = &smallpage_cmdset,
+       .timing         = &samsung2GbX8_timing,
+       .cmdset         = &largepage_cmdset,
        .page_per_block = 64,
        .page_size      = 2048,
        .flash_width    = 8,
--
Quoted 5 lines

1.7.2

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#3 lore raw
Quoted 4 lines · Lei Wen

Hi Axel,

I suggest not merge your patch into mainline code. Since I have a large series of patch which reconstruct the nand flash definition, this fix would no longer be needed.

Lei, would you please point the URL of the patch series (possibly by searching linux-mtd archive or some other mailing list archive) so that Axel can have a reference and be involved?

- eric

#4 lore raw

http://lists.infradead.org/pipermail/linux-mtd/2010-July/subject.html

They're re-posted in July. Please search the subjects in that page. They're totally 29 patches.

By the way, David, what's the result of review on these patches? We already posted for several times.

Thanks
Haojian

-----Original Message-----
From: Eric Miao [mailto:[email protected]]
Sent: 2010年8月16日 8:44 PM
To: Lei Wen
Cc: Axel Lin; linux-kernel; David Woodhouse; [email protected]; Haojian Zhuang
Subject: Re: [PATCH] [MTD] [NAND] pxa3xx: fix timing and cmdset for samsung2GbX8

Quoted 4 lines · Lei Wen

Hi Axel,

I suggest not merge your patch into mainline code. Since I have a large series of patch which reconstruct the nand flash definition, this fix would no longer be needed.

Lei, would you please point the URL of the patch series (possibly by searching linux-mtd archive or some other mailing list archive) so that Axel can have a reference and be involved?

- eric ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#5 lore raw
Quoted 6 lines · Haojian Zhuang

http://lists.infradead.org/pipermail/linux-mtd/2010-July/subject.html

They're re-posted in July. Please search the subjects in that page. They're totally 29 patches.

By the way, David, what's the result of review on these patches? We already posted for several times.

I've actually reviewed some of the patches and gave my Ack. For those patches, I think they can be merged early.

And overall, they look good. Yet 29 patch in a whole is still a bit too much, would be good to see them logically be separated into several patch series.

Quoted 22 lines

Thanks
Haojian

-----Original Message-----
From: Eric Miao [mailto:[email protected]]
Sent: 2010年8月16日 8:44 PM
To: Lei Wen
Cc: Axel Lin; linux-kernel; David Woodhouse; [email protected]; Haojian Zhuang
Subject: Re: [PATCH] [MTD] [NAND] pxa3xx: fix timing and cmdset for samsung2GbX8

Quoted 4 lines · Lei Wen

Hi Axel,

I suggest not merge your patch into mainline code. Since I have a large series of patch which reconstruct the nand flash definition, this fix would no longer be needed.

Lei, would you please point the URL of the patch series (possibly by searching linux-mtd archive or some other mailing list archive) so that Axel can have a reference and be involved?

- eric

#6 lore raw
Quoted 8 lines · Eric Miao
Quoted 6 lines · Haojian Zhuang

http://lists.infradead.org/pipermail/linux-mtd/2010-July/subject.html

They're re-posted in July. Please search the subjects in that page. They're totally 29 patches.

By the way, David, what's the result of review on these patches? We already posted for several times.

Quoted 6 lines

I've actually reviewed some of the patches and gave my Ack. For those patches, I think they can be merged early.

And overall, they look good. Yet 29 patch in a whole is still a bit too much, would be good to see them logically be separated into several patch series.

You had some criticism of patch #1 in the sequence, and some questions.

I didn't look much harder than that, iirc... although looking back now it seems that the rest of your responses to the sequence were largely positive.

Are you happy with the first patch, and if so shall I go ahead and import the whole sequence with your Acked-By:?

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#7 lore raw
Quoted 9 lines · David Woodhouse
Quoted 8 lines · Eric Miao
Quoted 6 lines · Haojian Zhuang

http://lists.infradead.org/pipermail/linux-mtd/2010-July/subject.html

They're re-posted in July. Please search the subjects in that page. They're totally 29 patches.

By the way, David, what's the result of review on these patches? We already posted for several times.

Quoted 9 lines
Quoted 6 lines

I've actually reviewed some of the patches and gave my Ack. For those patches, I think they can be merged early.

And overall, they look good. Yet 29 patch in a whole is still a bit too much, would be good to see them logically be separated into several patch series.

You had some criticism of patch #1 in the sequence, and some questions.

So they need to be addressed. Lei, could you please come up with an updated patch?

Quoted 7 lines

I didn't look much harder than that, iirc... although looking back now it seems that the rest of your responses to the sequence were largely positive.

Are you happy with the first patch, and if so shall I go ahead and import the whole sequence with your Acked-By:?

I'm generally OK, but still think it would be good to have another around of review before they can be merged.

#8 lore raw

Eric,
The first patch is a bit of fundamental. I'm afraid that modify it would bring changes to all latter patches in this series...

So I think I would repost another round of updating patch series and hope that would be merged. How do you think about this?

Thanks,
Lei

-----Original Message-----
From: Eric Miao [mailto:[email protected]]
Sent: 2010年8月16日 21:55
To: David Woodhouse
Cc: Haojian Zhuang; Lei Wen; Axel Lin; linux-kernel; [email protected]
Subject: Re: [PATCH] [MTD] [NAND] pxa3xx: fix timing and cmdset for samsung2GbX8

Quoted 9 lines · David Woodhouse
Quoted 8 lines · Eric Miao
Quoted 6 lines · Haojian Zhuang

http://lists.infradead.org/pipermail/linux-mtd/2010-July/subject.html

They're re-posted in July. Please search the subjects in that page. They're totally 29 patches.

By the way, David, what's the result of review on these patches? We already posted for several times.

Quoted 9 lines
Quoted 6 lines

I've actually reviewed some of the patches and gave my Ack. For those patches, I think they can be merged early.

And overall, they look good. Yet 29 patch in a whole is still a bit too much, would be good to see them logically be separated into several patch series.

You had some criticism of patch #1 in the sequence, and some questions.

So they need to be addressed. Lei, could you please come up with an updated patch?

Quoted 7 lines

I didn't look much harder than that, iirc... although looking back now it seems that the rest of your responses to the sequence were largely positive.

Are you happy with the first patch, and if so shall I go ahead and import the whole sequence with your Acked-By:?

I'm generally OK, but still think it would be good to have another around
of review before they can be merged. �翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m��� �鹅�⒏?朓�

#9 lore raw

2010/8/16 Lei Wen <[email protected]>:

Quoted 5 lines

Eric,
The first patch is a bit of fundamental. I'm afraid that modify it would bring changes to all latter patches in this series...

So I think I would repost another round of updating patch series and hope that would be merged. How do you think about this?

Please separate the patches into several patch series.

(PS: I'll possibly talk with you on this tomorrow F2F)

#10 lore raw

I may not have time from 10am to 11am. Except that, any time is ok for me. :-)

Best regards,
Lei

-----Original Message-----
From: Eric Miao [mailto:[email protected]]
Sent: 2010年8月16日 22:17
To: Lei Wen
Cc: David Woodhouse; Haojian Zhuang; Axel Lin; linux-kernel; [email protected]
Subject: Re: [PATCH] [MTD] [NAND] pxa3xx: fix timing and cmdset for samsung2GbX8

2010/8/16 Lei Wen <[email protected]>:

Quoted 5 lines

Eric,
The first patch is a bit of fundamental. I'm afraid that modify it would bring changes to all latter patches in this series...

So I think I would repost another round of updating patch series and hope that would be merged. How do you think about this?

Please separate the patches into several patch series.

(PS: I'll possibly talk with you on this tomorrow F2F) �翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m��� �鹅�⒏?朓�