public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Gerhard TAEUBL" <Gerhard.TAEUBL@frequentis.com>
To: <linux-mtd@lists.infradead.org>
Subject: 28F320S3
Date: Wed, 25 Aug 2004 16:35:12 +0200	[thread overview]
Message-ID: <s12cbf16.032@mail.frequentis.com> (raw)

Hi!

I'm wondering if the mtd driver (cfi_cmdset_0001.c) really works?
I get sometimes the error that the drive is read only.
OK now my configuration: 
Two 28F320S3 in parallel manner used as 32bit data device with an
MPC860T.
After looking at the code and put some Debug outputs into the code. It
seems, that the chip isn't fast enough, to set the bits in the status
register, because I got 00800082 (or 00820080). OK so thats right that I
got an error as read only device...
Then I look at the Status regsiter, and there you clear all other bits
beside the bit 7. If I dont mask all unneeded bits I run in troubles
while one block is erased and not suspended.

(if (status == status_OK)
   break;)

Because bit 6 is still set and never cleared, so I get a timeout. I
modified this line again:
if ((status & ~0x00400040) == status_OK)
   break;

So it works. Of course this mask has to be set up via CMD(0x40), but
does anyone else have such problems, or do you think that this
workaround won't work properly?

Please answer direct to my mail address, I'm not in the list.

br
Gerhard

                 reply	other threads:[~2004-08-25 14:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=s12cbf16.032@mail.frequentis.com \
    --to=gerhard.taeubl@frequentis.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