From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header
Date: Tue, 06 Nov 2012 09:19:00 +0100 [thread overview]
Message-ID: <5098C7F4.7000401@denx.de> (raw)
In-Reply-To: <1352133991-8712-1-git-send-email-joe.hershberger@ni.com>
On 11/05/2012 05:46 PM, Joe Hershberger wrote:
> If sub-page reads are supported, this will save reading unneeded data
>
> Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
> ---
>
> drivers/mtd/ubi/io.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c
> index 8423894..23660e3 100644
> --- a/drivers/mtd/ubi/io.c
> +++ b/drivers/mtd/ubi/io.c
> @@ -916,7 +916,7 @@ int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum,
>
> p = (char *)vid_hdr - ubi->vid_hdr_shift;
> err = ubi_io_read(ubi, p, pnum, ubi->vid_hdr_aloffset,
> - ubi->vid_hdr_alsize);
> + UBI_VID_HDR_SIZE);
> if (err) {
> if (err != UBI_IO_BITFLIPS && err != -EBADMSG)
> return err;
Joe, are you pushing this change to Linux as well? I would really like
to see Artem commenting on this.
Thanks,
Stefan
next prev parent reply other threads:[~2012-11-06 8:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-01 22:49 [U-Boot] [PATCH 1/2] ubi: Only read the actual size of the VID header Joe Hershberger
2012-11-01 22:49 ` [U-Boot] [PATCH 2/2] nand: Move the sub-page read support enable to a flag Joe Hershberger
2012-11-02 22:41 ` Scott Wood
2012-11-05 16:46 ` [U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header Joe Hershberger
2012-11-05 16:46 ` [U-Boot] [PATCH v2 2/2] nand: Move the sub-page read support enable to a flag Joe Hershberger
2012-11-16 0:10 ` [U-Boot] [U-Boot, v2, " Scott Wood
2012-11-06 8:19 ` Stefan Roese [this message]
2012-11-06 23:47 ` [U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header Joe Hershberger
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=5098C7F4.7000401@denx.de \
--to=sr@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