public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] ubi: Only read the actual size of the VID header
@ 2012-11-01 22:49 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-05 16:46 ` [U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header Joe Hershberger
  0 siblings, 2 replies; 8+ messages in thread
From: Joe Hershberger @ 2012-11-01 22:49 UTC (permalink / raw)
  To: u-boot

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;
-- 
1.7.11.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-16  0:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header Stefan Roese
2012-11-06 23:47     ` Joe Hershberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox