From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kyungmin Park" To: , "'David Woodhouse'" References: <1190382415.14370.207.camel@sauron> <1190388606.14370.212.camel@sauron> Subject: RE: [PATCH try 2] MTD: OneNAND: fix numerous races Date: Thu, 27 Sep 2007 08:50:48 +0900 Message-ID: <00fa01c80098$152a45a0$e1ac580a@swcenter.sec.samsung.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit In-reply-to: <1190388606.14370.212.camel@sauron> Cc: linux-mtd@lists.infradead.org Reply-To: kmpark@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, Sorry for late replying. Look good to me except one typo. Acked-by: Kyungmin Park > @@ -2052,7 +2063,12 @@ static int do_otp_write(struct mtd_info *mtd, loff_t from, size_t len, > this->command(mtd, ONENAND_CMD_OTP_ACCESS, 0, 0); > this->wait(mtd, FL_OTPING); > > - ret = mtd->write(mtd, from, len, retlen, pbuf); > + ops.len = len; > + ops.ooblen = 0; > + ops.databuf = pbuf; It should be ops.datbuf. > + ops.oobbuf = NULL; > + ret = onenand_write_ops_nolock(mtd, to, &ops); > + *retlen = ops.retlen;