public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: stefano babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] CFI Driver Problem: flash not ready
Date: Mon, 20 Oct 2008 10:00:43 +0200	[thread overview]
Message-ID: <48FC3AAB.7070305@denx.de> (raw)
In-Reply-To: <20081019195142.C34DC832E43A@gemini.denx.de>

Wolfgang Denk wrote:
> Why the heck does flash_is_busy() return 0 when the flashobviously is
> still busy?

flash_is_busy() implements the toggling check. Of course, it should
work, but I remember I had in the past a similar problem and I switched
to the DQ7 bit algorithm (for erasing, it means I checked 0xFF for the
whole bus width).
Linux mtd does not implement the toggling algorithm to check if the
flash is erased and it relies on the values read from the flash.
Could be a solution to add a check for 0xFF in cfi_flash.c:flash_erase()
after flash_full_status_check() returns successfully ?

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  parent reply	other threads:[~2008-10-20  8:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-19 19:51 [U-Boot] CFI Driver Problem: flash not ready Wolfgang Denk
2008-10-19 21:59 ` Scott McNutt
2008-10-19 22:10   ` Wolfgang Denk
2008-10-23 23:26   ` Wolfgang Denk
2008-10-20  8:00 ` stefano babic [this message]
2008-10-23  2:20 ` Ross Morley

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=48FC3AAB.7070305@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /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