public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org, dwmw2@infradead.org,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH v2 4/4] Freescale enhanced Local Bus Controller FCM NAND support.
Date: Fri, 14 Dec 2007 22:59:17 +0300	[thread overview]
Message-ID: <20071214195917.GA18616@localhost.localdomain> (raw)
In-Reply-To: <4762DA95.90000@freescale.com>

On Fri, Dec 14, 2007 at 01:33:41PM -0600, Scott Wood wrote:
> Anton Vorontsov wrote:
> >On Fri, Dec 14, 2007 at 12:56:24PM -0600, Scott Wood wrote:
> >>+#if 0
> >>+#define ELBC_NAND_DEBUG_LVL 6
> >>+#endif
> >>+
> >>+#ifdef ELBC_NAND_DEBUG_LVL
> >>+static int fcm_debug_level = ELBC_NAND_DEBUG_LVL;
> >>+#define FCM_DEBUG(n, args...)		\
> >>+	do {					\
> >>+		if (n <= fcm_debug_level)	\
> >>+			pr_dbg(args);	\
> >>+	} while(0)
> >>+#else
> >>+#define FCM_DEBUG(n, dev, args...) do { } while(0)
> >>+#endif
> >
> >Only 1, 2 and 5 debug levels are used. Maybe better use dev_dbg
> >and dev_vdbg instead?
> 
> Yeah, probably...
> 
> >Btw, checkpatch result:
> >total: 69 errors, 14 warnings, 1236 lines checked
> 
> Most of those are errors in checkpatch, wherein it fails to understand 
> the difference between aligning with spaces (good) and indenting with 
> spaces (bad).  Checkpatch spits out so many of those that other things 
> get lost in the noise, so I don't usually bother to run it.
> 
> I also do not understand the allergy to C99 comments in the Linux 
> community, though I'll change the few that slipped in by accident.
> 
> I'll fix the few legitimate ones.
> 
> >This isn't very friendly to the people going to look into.
> 
> You should have seen what it looked like before I touched it. :-P

I have seen that. ;-) Its previous name was fsl_fcm, and I shuddered
from it, honestly. I must admit that you've done great work on this!

> >Maybe this desires its own header?
> 
> It can be factored out if anything else ever uses it.

It's just confusing to parse lbc-specific and nand-specific code
placed in the same file.


Thanks,

-- 
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.net/bd2

  reply	other threads:[~2007-12-14 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14 18:56 [PATCH v2 4/4] Freescale enhanced Local Bus Controller FCM NAND support Scott Wood
2007-12-14 19:24 ` Anton Vorontsov
2007-12-14 19:33   ` Scott Wood
2007-12-14 19:59     ` Anton Vorontsov [this message]
2007-12-14 21:40       ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071214195917.GA18616@localhost.localdomain \
    --to=avorontsov@ru.mvista.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=scottwood@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox