From: Vladimir Barinov <vbarinov@embeddedalley.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: dwmw2@infradead.org, linux-mtd@lists.infradead.org,
Lothar Wassmann <LW@KARO-electronics.de>
Subject: Re: [PATCH] [MTD] MXC NAND driver fixes (v2)
Date: Mon, 06 Apr 2009 13:11:36 +0400 [thread overview]
Message-ID: <49D9C748.1080706@embeddedalley.com> (raw)
In-Reply-To: <20090404113725.GD23731@pengutronix.de>
Sascha Hauer wrote:
> On Fri, Apr 03, 2009 at 12:43:15PM +0400, Vladimir Barinov wrote:
>
>> The following patch fixes:
>> - re-initialization of host->col_addr which is used as byte index
>> between the successive READID flash commands.
>> - compile error when CONFIG_PM is enabled
>> - pass on the error code from clk_get()
>> - return -ENOMEM in case of failed ioremap()
>> - pass on the return value of platform_driver_probe() directly
>> - remove excessive printk
>> - let command line partition table parsing with mxc_nand name.
>> The cmd_line parsing is done via <mtd-id> name that differs
>> from mxc_nand by default and looks like "NAND 256MiB 1,8V 8-bit"
>>
>> Signed-off-by: Vladimir Barinov <vbarinov@embeddedalley.com>
>> Signed-off-by: Lothar Wassmann <LW@KARO-electronics.de>
>> ---
>> drivers/mtd/nand/mxc_nand.c | 45 +++++++++++++++++++++++-------------------
>> 1 files changed, 25 insertions(+), 20 deletions(-)
>>
>>
>> /* Register the partitions */
>> #ifdef CONFIG_MTD_PARTITIONS
>> +#ifdef CONFIG_MTD_CMDLINE_PARTS
>> + mtd->name = "mxc_nand";
>> +#endif
>>
>
> Thinking about it I'm totally against this ifdef. The name should not
> depend on command line partition support being compiled into the kernel
> or not. Just because it's compiled in does not mean that the user
> actually wants to use it and it's quite confusing that the name changes
> when a totally unrelated option is changed. I think it should not even
> be inside CONFIG_MTD_PARTITIONS.
>
Actually I agree to make the name permanent and put out of any ifdef.
I've added cmdline dependency here just because of too long command line
name
needed to parse partition table and all other cases were useless.
> The rest of the patch seems ok to me.
>
Then I'll put the driver naming out of ifdefs and resend the v3.
> Sascha
>
next prev parent reply other threads:[~2009-04-06 9:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1238709260-17439-1-git-send-email-vbarinov@embeddedalley.com>
2009-04-03 5:38 ` [PATCH] [MTD] MXC NAND driver fixes Sascha Hauer
2009-04-03 8:21 ` Vladimir Barinov
[not found] ` <1238748195-10757-1-git-send-email-vbarinov@embeddedalley.com>
2009-04-04 11:37 ` [PATCH] [MTD] MXC NAND driver fixes (v2) Sascha Hauer
2009-04-06 9:11 ` Vladimir Barinov [this message]
[not found] ` <1239210502-822-1-git-send-email-vbarinov@embeddedalley.com>
2009-04-08 17:28 ` [PATCH] [MTD] MXC NAND driver fixes (v3) Sascha Hauer
2009-04-29 10:52 ` Holger Schurig
2009-04-30 10:29 ` Vladimir Barinov
2009-04-30 11:09 ` Holger Schurig
2009-04-30 11:42 ` Vladimir Barinov
2009-04-30 12:30 ` Holger Schurig
2009-04-29 11:12 ` Holger Schurig
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=49D9C748.1080706@embeddedalley.com \
--to=vbarinov@embeddedalley.com \
--cc=LW@KARO-electronics.de \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=s.hauer@pengutronix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.