From: Devin Butterfield <dbutter@wireless.net>
To: David Woodhouse <dwmw2@infradead.org>
Cc: ipaq@handhelds.org, linux-mtd@lists.infradead.org
Subject: Re: [iPAQ] Sleep/resume problems, etc.
Date: Wed, 9 May 2001 00:50:46 -0700 [thread overview]
Message-ID: <01050900504600.05074@dbm.wireless.net> (raw)
In-Reply-To: <3428.989306452@redhat.com>
> The power cycle has reset the flash chip into read mode. The driver still
> thinks it's in status mode.
>
> The chip driver's resume function needs to make sure the chip is in a known
> state, rather than assuming it'll still be in the same state it was before
> the sleep.
>
> I'm sure I'd done this before.
>
> diff -u -r1.72 cfi_cmdset_0001.c
> --- cfi_cmdset_0001.c 2001/03/26 13:51:15 1.72
> +++ cfi_cmdset_0001.c 2001/05/08 07:19:12
> @@ -1582,7 +1582,9 @@
> spin_lock_bh(chip->mutex);
>
> if (chip->state == FL_PM_SUSPENDED) {
> - chip->state = chip->oldstate;
> + /* We need to force it back to a known state. */
> + cfi_write(map, CMD(0xff), cmd_addr);
^^^^^^^^
What should cmd_addr be here? It's not defined.
--
Regards, Devin.
prev parent reply other threads:[~2001-05-09 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <01050718392500.02834@dbm.wireless.net>
2001-05-08 7:20 ` [iPAQ] Sleep/resume problems, etc David Woodhouse
2001-05-09 7:50 ` Devin Butterfield [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=01050900504600.05074@dbm.wireless.net \
--to=dbutter@wireless.net \
--cc=dwmw2@infradead.org \
--cc=ipaq@handhelds.org \
--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 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.