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

[PATCH V7 2/4] MTD: pxa3xx_nand: convert all printk into dev_*

From: Sergei Shtylyov <hidden>
Date: 2011-07-13 14:35:10

Hello.

Lei Wen wrote:
quoted
quoted
Signed-off-by: Lei Wen<redacted>
---
 drivers/mtd/nand/pxa3xx_nand.c |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/drivers/mtd/nand/pxa3xx_nand.c
b/drivers/mtd/nand/pxa3xx_nand.c
index 1efecf7..afe14bd 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
[...]
quoted
@@ -774,11 +774,15 @@ static int pxa3xx_nand_config_flash(struct
pxa3xx_nand_info *info,
       struct pxa3xx_nand_platform_data *pdata = pdev->dev.platform_data;
       uint32_t ndcr = 0x0; /* enable all interrupts */

-       if (f->page_size != 2048 && f->page_size != 512)
+       if (f->page_size != 2048 && f->page_size != 512) {
+               dev_err(&pdev->dev, "Current only support 2048 and 512
size\n");
               return -EINVAL;
+       }

-       if (f->flash_width != 16 && f->flash_width != 8)
+       if (f->flash_width != 16 && f->flash_width != 8) {
+               dev_err(&pdev->dev, "Only support 8bit and 16 bit!\n");
quoted
  So this patch not only converts printk() to dev_*() calls, it also adds
some dev_err() calls? This should have been mentioned in the change long at
least...
What do you mean by "chang long"? Do you mean the cover letter or the
patch name?
    I mean the patch description (which in this patch is missing).
Certainly it is a good suggest to show it in the change version list.
    Don't quite understand what you mean here...
Best regards,
Lei
WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help