[iPAQ] Sleep/resume problems, etc.
Devin Butterfield
dbutter at wireless.net
Wed May 9 03:50:46 EDT 2001
> 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.
More information about the linux-mtd
mailing list