public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Ole Reinhardt <ole.reinhardt@kernelconcepts.de>
To: linux-mtd@lists.infradead.org
Subject: mtd with AMD AM29LV800DB nor flash
Date: Mon, 02 Jan 2006 17:30:36 +0100	[thread overview]
Message-ID: <1136219436.11699.55.camel@platon> (raw)

Hello,

I have a problem using 2.6.15-rc7'th mtd with an AMD AM29LV800DB nor
flash device.

The flash chip is connected to CS0 and is using 16bit bus width. It is
recognised as AM29LV800BB, which is fully software and pin compatible to
the AM29LV800DB device.

Everything works quite fine, except writing / erasing. I tracked down
the problem downto the following function:

finfo_uaddr() in drivers/mtd/chips/jedec_probe.c

I have a 16bit bus width, so I would expect it to return
MTD_UADDR_0x0555_0x02AA, but there are the following lines:


if (uaddr != MTD_UADDR_NOT_SUPPORTED ) {
	/* ASSERT("The unlock addresses for non-8-bit mode
	   are bollocks. We don't really need an array."); */
	uaddr = finfo->uaddr[0];
}

In other words: For my flash chip, always MTD_UADDR_0x0AAA_0x0555 is
returned.

This is definatly the wrong unlock address for 16bit mode and every
erase command will fail.

If I comment out the "if (uaddr != MTD_UADDR_NOT_SUPPORTED ) ..."
everything works fine.

Can anybody explain me what's going wrong or is this a bug in the mtd
code?

Best regards,

Ole Reinhardt

-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--

             reply	other threads:[~2006-01-02 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-02 16:30 Ole Reinhardt [this message]
2006-01-02 21:17 ` mtd with AMD AM29LV800DB nor flash Vitaly Wool

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=1136219436.11699.55.camel@platon \
    --to=ole.reinhardt@kernelconcepts.de \
    --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