From: Ales Makarov <ales.makarov@wolfhill.cz>
To: Frederic Giasson <fgiasson@mediatrix.com>,
Linux MTD mailing list <linux-mtd@lists.infradead.org>
Subject: Re: Kernel oops after sync command in jffs2
Date: Thu, 23 May 2002 17:34:27 +0200 [thread overview]
Message-ID: <3CED0C03.A4919B85@wolfhill.cz> (raw)
In-Reply-To: F1BED55F35F4D3118C0F00E0295CFF4D014ECF4B@mail.mediatrix.com
Frederic Giasson wrote:
>
> However, I had a look at do_erase_oneword() function. I seen that to verify
I guess you mean do_write_oneword() function.
> if write operation has completed, we simply read back the written value
> until it matches or until we read back 10000 times or more. This works most
> of the time, but in my opinion it is not the best way to do that.
You are right. This could be my problem...
> What I think we should do to determine if write operation has completed OK
> is to poll DQ6 and DQ5, as we do for erase operation. However, since
> program operation takes *much* less time than erase operation ( 150 us max
> accoring to my AMD spec ), we should not schedule. We should simply poll
> 150 times at most, inserting a "udelay(1);" in each loop. If DQ5 rises, we
> must threat it the same way we do in do_erase_oneblock().
I agree. I would also prefer the DQ6 and DQ5 testing.
>
> Also, speaking of do_erase_oneblock(), it is said in my AMD spec that when
> DQ5 rises, even if that happen while DQ6 still toggle, it is necessary to
> read DQ0-DQ7 twice once again and compare both values to see if it still
> toggles. If it does not toggle, it means that erase operation has completed
> correctly. You can verify that my yourself by having a look at figure 6, p.
> 29 in spec sheet "Am29DL322D/323D/324D, revD, May 8th, 2001".
>
> Frederic Giasson
>
I have read it also in the datasheet of the Fujitsu MBM29LV320 (p.32).
These additional reads should be done, because the toggle bit may have
stopped toggling just as DQ5 went high.
Ales
next prev parent reply other threads:[~2002-05-23 15:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-22 14:52 Kernel oops after sync command in jffs2 Frederic Giasson
2002-05-23 15:34 ` Ales Makarov [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-05-23 15:36 Frederic Giasson
2002-05-22 2:03 Frederic Giasson
2002-05-22 6:27 ` David Woodhouse
2002-05-22 10:51 ` Ales Makarov
2002-05-21 18:54 Frederic Giasson
2002-05-21 21:07 ` David Woodhouse
2002-05-17 18:04 Frederic Giasson
2002-05-18 7:43 ` David Woodhouse
2002-05-16 16:04 Frederic Giasson
2002-05-16 17:34 ` David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CED0C03.A4919B85@wolfhill.cz \
--to=ales.makarov@wolfhill.cz \
--cc=fgiasson@mediatrix.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox