From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Yanok Date: Sun, 02 Nov 2008 22:08:27 +0300 Subject: [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code In-Reply-To: <20081102160205.C0BB5832E40A@gemini.denx.de> References: <1223877234-720-1-git-send-email-yanok@emcraft.com> <20081013081442.665DB85DAB1C@gemini.denx.de> <48F5E5CB.3070303@emcraft.com> <48F73540.3020504@gmx.de> <490BAA2A.6020806@emcraft.com> <20081102160205.C0BB5832E40A@gemini.denx.de> Message-ID: <490DFAAB.2080105@emcraft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Wolfgang, Wolfgang Denk wrote: >> Sounds good. That is what we were expecting. >> > > If you submit a patch, then please add such comments *below* the "---" > line. > That wasn't a patch submission actually... I've just wanted Michael to test if this patch helps with his problem. I'll post the full updated patch series soon. >> diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c >> index e7f07bf..2fc0b7d 100644 >> --- a/common/cmd_jffs2.c >> +++ b/common/cmd_jffs2.c >> @@ -344,7 +344,9 @@ static int part_validate_nor(struct mtdids *id, >> struct part_info *part) >> >> flash = &flash_info[id->num]; >> >> - part->sector_size = 0; >> + /* size of last sector */ >> + part->sector_size = flash->size - >> + (flash->start[flash->sector_count-1] - flash->start[0]); >> >> offset_aligned = 0; >> for (i = 0; i < flash->sector_count; i++) { >> @@ -360,6 +362,7 @@ static int part_validate_nor(struct mtdids *id, >> struct part_info *part) >> > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Patch is correcpted because your mailer wrapped long lines. > > Please fix your mailer setup and resubmit. > That's my fault... Usually I send patches with git-send-email... As I said before I'll post correct patches in a short time. Regards, Ilya.