From: Artem Bityutskiy <dedekind1@gmail.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
MTD mailing list <linux-mtd@lists.infradead.org>,
David Brownell <david-b@pacbell.net>
Subject: Re: [PATCH] MTD: Correct typo "MTD_DATAFLASH_VERIFY_WRITE".
Date: Tue, 21 Jul 2009 10:43:37 +0300 [thread overview]
Message-ID: <4A6571A9.5070007@gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.00.0907192115420.18015@localhost>
Seems correct to me, I'll put it to l2-mtd-2.6.git, thanks.
CCint David who seem to introduced this in the following commit:
commit 8c64038e4c077b2b37c6b27d0c40c77a3ddfaeef
Author: David Brownell <dbrownell@users.sourceforge.net>
Date: Wed Aug 6 21:55:14 2008 -0700
[MTD] make dataflash write-verify be optional
This adds a WRITE_VERIFY Kconfig option to the DataFlash driver,
closely mirroring the similar NAND and ONENAND options, giving
an option to disable some code that's currently always enabled.
Removing this step probably saves a millisecond or so per page
when writing data, which will add up quickly since these pages
are small (the largest is 1 KiB). It doesn't seem to add a
lot in terms of reliability, and wouldn't detect errors which
crop up when transferring data to the on-chip SRAM buffer.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
On 07/20/2009 04:19 AM, Robert P. J. Day wrote:
> Fix the misspelling to match the actual config variable defined in
> drivers/mtd/devi ces/Kconfig:
>
> config MTD_DATAFLASH_WRITE_VERIFY
> bool "Verify DataFlash page writes"
> depends on MTD_DATAFLASH
>
> Signed-off-by: Robert P. J. Day<rpjday@crashcourse.ca>
>
> ---
>
> you know, there's a *reason* i keep reporting these anomalies...
>
> diff --git a/drivers/char/vr41xx_giu.c b/drivers/char/vr41xx_giu.c
> deleted file mode 100644
> index e69de29..0000000
> diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
> index 43976aa..70a7369 100644
> --- a/drivers/mtd/devices/mtd_dataflash.c
> +++ b/drivers/mtd/devices/mtd_dataflash.c
> @@ -401,7 +401,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
> (void) dataflash_waitready(priv->spi);
>
>
> -#ifdef CONFIG_MTD_DATAFLASH_VERIFY_WRITE
> +#ifdef CONFIG_MTD_DATAFLASH_WRITE_VERIFY
>
> /* (3) Compare to Buffer1 */
> addr = pageaddr<< priv->page_offset;
> @@ -430,7 +430,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
> } else
> status = 0;
>
> -#endif /* CONFIG_MTD_DATAFLASH_VERIFY_WRITE */
> +#endif /* CONFIG_MTD_DATAFLASH_WRITE_VERIFY */
>
> remaining = remaining - writelen;
> pageaddr++;
>
> ========================================================================
> Robert P. J. Day Waterloo, Ontario, CANADA
>
> Linux Consulting, Training and Annoying Kernel Pedantry.
>
> Web page: http://crashcourse.ca
> Twitter: http://twitter.com/rpjday
> "Kernel Newbie Corner" column @ linux.com: http://cli.gs/WG6WYX
> ========================================================================
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
prev parent reply other threads:[~2009-07-21 7:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 1:19 [PATCH] MTD: Correct typo "MTD_DATAFLASH_VERIFY_WRITE" Robert P. J. Day
2009-07-21 7:43 ` Artem Bityutskiy [this message]
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=4A6571A9.5070007@gmail.com \
--to=dedekind1@gmail.com \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=rpjday@crashcourse.ca \
/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