From: Elizabeth Clarke <eclarke@aminocom.com>
To: linux-mtd@lists.infradead.org
Subject: Re: Self Answer & NAND driver wait queue init problem
Date: Tue, 22 Jan 2002 14:30:52 +0000 [thread overview]
Message-ID: <3C4D779C.B3894752@aminocom.com> (raw)
In-Reply-To: 20010913145341.A21279@hartford.siteprotect.co.kr
Kim Jong-chan wrote back in september last year!:
> Finally, I've solved the problem.
> The answer is that wq of struct nand_chip is not initialized.
> So I suggest... nand_scan() in nand.c
>
> /* Initialize state and spinlock */
> this->state = FL_READY;
> spin_lock_init(&this->chip_lock);
>
> /* Initialize wait queue : fixed by Adelinux */
> > init_waitqueue_head(&this->wq);
>
> /* De-select the device */
> nand_deselect ();
>
> I've looked up MTD drivers code of other chips. And I think wq must be
> initialized. Otherwise, wake_up will kill the system.
I've just been caught by this too, so the/a fix didn't get into CVS...
Is Kim's fix a good one, if so can someone check it in please? If it
isn't what is the Right Thing to do?....
Beth
--
Chief Engineer - Software
Amino Communications Ltd
01954 784523 (Direct Line)
prev parent reply other threads:[~2002-01-22 14:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-12 6:55 NAND flash driver x86 port problem Kim Jong-chan
2001-09-13 5:53 ` Self Answer & NAND driver wait queue init problem Kim Jong-chan
2002-01-22 14:30 ` Elizabeth Clarke [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=3C4D779C.B3894752@aminocom.com \
--to=eclarke@aminocom.com \
--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