From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Mon, 10 Sep 2007 09:08:50 +0200 Subject: [U-Boot-Users] [PATCH 4/5] OneNAND support In-Reply-To: Your message of "Mon, 10 Sep 2007 10:19:43 +0900." <002601c7f348$ae36a480$e1ac580a@swcenter.sec.samsung.co.kr> Message-ID: <20070910070850.EB277247CE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <002601c7f348$ae36a480$e1ac580a@swcenter.sec.samsung.co.kr> you wrote: > > > > +static int check_short_pattern(uint8_t * buf, int len, int paglen, ... > > > + /* Compare the pattern */ > > > + for (i = 0; i < td->len; i++) { > > > + if (p[i] != td->pattern[i]) > > > + return -1; > > > + } ... > > This should probably be replaced by a call to memmem() ? ... > > > +static inline int onenand_memory_bbt(struct mtd_info *mtd, ... > This BBT code is not yet implemented. > It's only scan the full blocks at boot time and display the bad blocks. > > It's also next time work. I see. OK. What about using memmem() above? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Quote from a recent meeting: "We are going to continue having these meetings everyday until I find out why no work is getting done."