From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 5/5] OneNAND support
Date: Mon, 10 Sep 2007 09:13:20 +0200 [thread overview]
Message-ID: <20070910071320.E3096247CE@gemini.denx.de> (raw)
In-Reply-To: Your message of "Mon, 10 Sep 2007 10:51:07 +0900." <002701c7f34d$110ffbc0$e1ac580a@swcenter.sec.samsung.co.kr>
In message <002701c7f34d$110ffbc0$e1ac580a@swcenter.sec.samsung.co.kr> you wrote:
>
> > CONFIG_CMD_ONENAND is definitely NOT a candiate for config_cmd_all.h
>
> No problem.
> I just add it as comments in "config_cmd_all" file.
> "Alphabetical list of all possible commands."
Sorry. Iwas totally wrong here - I confused this with
include/config_cmd_default.h where it really doe snot belong, but you
did not try adding it there.
Of course you were right - it should be added to
include/config_cmd_all.h
Please leave this part as is, and excuse my confusion.
> > This should probably be 0 for production code?
> >
> > > +#ifdef ONENAND_DEBUG
> > > +#define DEBUG(level, args...) \
> > > +do { \
> > > + if (level <= DEBUG_LEVEL) { \
> > > + printf(args); \
> > > + } \
> > > +} while (0)
> > > +#else
> > > +#define DEBUG(level, args...) do { } while (0)
> > > +#endif
> >
> > Please do not reinvent yoru own debug macros, please use the existing
> > ones instead.
> >
>
> After new NAND implementation, there are required macro and filed.
> I added <linux/mtd/compat.h> and <linux/mtd/mtd.h> headers at required files
>
> Others such as spinlock, wait_queue_head_t are typedef-ed.
> In NAND case, it disabled it by "if 0".
> And kvec also will be removed at next code update.
I still think you should NOT redefine DEBUG but instead use the
existing definitions for debug() resp. debugX(); please see
include/common.h
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Man is the best computer we can put aboard a spacecraft ... and the
only one that can be mass produced with unskilled labor.
- Wernher von Braun
next prev parent reply other threads:[~2007-09-10 7:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 1:01 [U-Boot-Users] [PATCH 5/5] OneNAND support Kyungmin Park
2007-09-08 23:09 ` Wolfgang Denk
2007-09-10 1:51 ` Kyungmin Park
2007-09-10 7:13 ` Wolfgang Denk [this message]
2007-09-10 7:32 ` Kyungmin Park
2007-09-10 18:45 ` Wolfgang Denk
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=20070910071320.E3096247CE@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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