From: Chris Zimman <chris@cryptoapps.com>
To: Seb James <seb@peak.uklinux.net>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: failing i2c driver on mpc8xx - interruptible_sleep_on()
Date: Wed, 18 Jun 2003 09:23:57 -0500 [thread overview]
Message-ID: <20030618142357.GA9894@dingdong.cryptoapps.com> (raw)
In-Reply-To: <3EF0660F.90909@peak.uklinux.net>
On Wed, Jun 18, 2003 at 02:15:59PM +0100, Seb James wrote:
> This function contains a line:
>
> interruptible_sleep_on(&iic_wait);
>
> Which is causing my mpc8xx to hang (no serial console response, no telnet
> access).
>
> cpm_iic_read(), also has an interruptible_sleep_on() call which hangs my
> target in the same way.
>
> Does anyone know why this might be? interruptible_sleep_on() is in sched.c
> and looks like:
Seb,
What's going on is that when you call interruptible_sleep_on(), you're
putting the process to sleep until an interrupt comes in and wakes it
up. iic_wait is the wait queue that you're using. So in order for the
process to continue, and interrupt has to occur and wake this process
up.
The most likely reason that you're hanging is because the interrupt is
never coming in.
--Chris
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2003-06-18 14:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-18 13:15 failing i2c driver on mpc8xx - interruptible_sleep_on() Seb James
2003-06-18 14:23 ` Chris Zimman [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=20030618142357.GA9894@dingdong.cryptoapps.com \
--to=chris@cryptoapps.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=seb@peak.uklinux.net \
/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;
as well as URLs for NNTP newsgroup(s).