failing i2c driver on mpc8xx - interruptible_sleep_on()

Chris Zimman chris at
Thu Jun 19 00:23:57 EST 2003

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:


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

The most likely reason that you're hanging is because the interrupt is
never coming in.


** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list