From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] cfi_flash: reset timer in flash status check
Date: Wed, 7 Apr 2010 11:32:53 +0200 [thread overview]
Message-ID: <201004071132.53943.sr@denx.de> (raw)
In-Reply-To: <1270091705-22932-1-git-send-email-thomas@wytron.com.tw>
On Thursday 01 April 2010 05:15:05 Thomas Chou wrote:
> This patch adds reset_timer() before the flash status check
> waiting loop.
>
> Since the timer is basically running asynchronous to the cfi
> code, it is possible to call get_timer(0), then only a few
> _SYSCLK_ cycles later an interrupt is generated. This causes
> timeout even though much less time has elapsed. So the timer
> period registers should be reset before get_timer(0) is
> called.
>
> There is similar usage in nand_base.c.
Applied to u-boot-cfi-flash/master. Thanks.
Cheers,
Stefan
--
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
prev parent reply other threads:[~2010-04-07 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 3:11 [U-Boot] [PATCH] cfi_flash: reset timer in flash status check Thomas Chou
2010-04-01 3:15 ` [U-Boot] [PATCH v2] " Thomas Chou
2010-04-07 9:32 ` Stefan Roese [this message]
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=201004071132.53943.sr@denx.de \
--to=sr@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.