Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298191
b: refs/heads/master
c: a2b3d28
h: refs/heads/master
i:
  298189: 4ac71fb
  298187: 9f885df
  298183: 5b4e5a4
  298175: 6120309
v: v3
  • Loading branch information
Robert Jarzmik authored and David Woodhouse committed Mar 27, 2012
1 parent 01f52f6 commit ad5d21f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: a7baef1211b0ac218299965481e7cff9d68c1edd
refs/heads/master: a2b3d284ed65b9ada18fd2ffb66daffe9c0ff168
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/devices/docg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,10 @@ static int doc_get_op_status(struct docg3 *docg3)
*/
static int doc_write_erase_wait_status(struct docg3 *docg3)
{
int status, ret = 0;
int i, status, ret = 0;

if (!doc_is_ready(docg3))
usleep_range(3000, 3000);
for (i = 0; !doc_is_ready(docg3) && i < 5; i++)
msleep(20);
if (!doc_is_ready(docg3)) {
doc_dbg("Timeout reached and the chip is still not ready\n");
ret = -EAGAIN;
Expand Down

0 comments on commit ad5d21f

Please sign in to comment.