Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27759
b: refs/heads/master
c: 34c1060
h: refs/heads/master
i:
  27757: da31df9
  27755: 23e79bc
  27751: 2277e55
  27743: c800369
v: v3
  • Loading branch information
Kyungmin Park authored and Jarkko Lavinen committed May 12, 2006
1 parent 3a21fa5 commit c6e3acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e6ec69059ba0eecbb2226d3d9e45c6efe6fb82b
refs/heads/master: 34c1060959b61a5bb2e97a88411446028cebfa7c
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,11 @@ static int onenand_write_oob(struct mtd_info *mtd, loff_t to, size_t len,

this->command(mtd, ONENAND_CMD_BUFFERRAM, to, mtd->oobsize);

this->write_bufferram(mtd, ONENAND_SPARERAM, ffchars, 0, mtd->oobsize);
this->write_bufferram(mtd, ONENAND_SPARERAM, buf, column, thislen);
/* We send data to spare ram with oobsize
* to prevent byte access */
memset(this->page_buf, 0xff, mtd->oobsize);
memcpy(this->page_buf + column, buf, thislen);
this->write_bufferram(mtd, ONENAND_SPARERAM, this->page_buf, 0, mtd->oobsize);

this->command(mtd, ONENAND_CMD_PROGOOB, to, mtd->oobsize);

Expand Down

0 comments on commit c6e3acd

Please sign in to comment.