Re: i2c transfers during interrupt context

From: Jean Delvare
Date: Thu Aug 30 2007 - 11:31:50 EST


Bonjour Francis ;)

On Thu, 30 Aug 2007 15:55:49 +0200, Francis Moreau wrote:
> I have a very simple question about i2c transfers.
>
> I'm wondering if I'm allowed to initiate some very short i2c transfers
> in an interrupt handler.

Non. Tu n'as pas le droit de dormir dans un gestionnaire
d'interruption, et la majorité des pilotes I2C dorment pendant les
transferts.

Si tu as besoin de faire ce genre de chose il faut typiquement passer
par une workqueue.

--
Jean Delvare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/