Thread (81 messages) 81 messages, 6 authors, 2011-07-20
STALE5441d
Revisions (13)
  1. v3 [diff vs current]
  2. v3 [diff vs current]
  3. v3 [diff vs current]
  4. v3 [diff vs current]
  5. v3 [diff vs current]
  6. v3 [diff vs current]
  7. v3 current
  8. v4 [diff vs current]
  9. v3 [diff vs current]
  10. v3 [diff vs current]
  11. v5 [diff vs current]
  12. v6 [diff vs current]
  13. v7 [diff vs current]

[PATCH 3/4] MTD: pxa3xx_nand: enable multiple chip select support

From: Igor Grinberg <hidden>
Date: 2011-07-07 08:59:13

On 07/07/11 09:26, Lei Wen wrote:
Hi Igor && Daniel,

On Wed, Jul 6, 2011 at 3:41 PM, Igor Grinberg [off-list ref] wrote:
quoted
On 07/04/11 12:25, Lei Wen wrote:
quoted
 #ifdef CONFIG_PM
@@ -1203,8 +1259,12 @@ static int pxa3xx_nand_resume(struct platform_device *pdev)
 {
      struct pxa3xx_nand_info *info = platform_get_drvdata(pdev);

-     nand_writel(info, NDTR0CS0, info->host->ndtr0cs0);
-     nand_writel(info, NDTR1CS0, info->host->ndtr1cs0);
+     /*
+      * Directly set the chip select to a invalid value,
+      * then the driver would reset the timing according
+      * to current chip select at the beginning of cmdfunc
+      */
+     info->cs = 0xff;
Thinking of this for the second (or third) time,
If you have keep config enabled and have only one nand chip,
this will brake the keep config...

Daniel,

have you tested the suspend/resume with this patch?
(and keep_config on?)
Do you still have concern with this change?
If not, I would push the next round of patch set including merging
patch 3 and 4.
Though I can't test it right now, but yes it looks like it breaks
the keep_config after the resume (actually it disables the keep_config silently).

I think you need here some kind of check if keep_config is enabled.
keep_config is enabled means that only one chip select is used for NAND
and you don't need to reset the timings.


-- 
Regards,
Igor.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help