[i2c] [PATCH] Add polling transfer for i2c-pxa

Jean Delvare khali at linux-fr.org
Sat Dec 8 16:53:18 CET 2007


On Wed, 5 Dec 2007 11:07:28 -0800, David Brownell wrote:
> The fact that I2C calls can't be issued from nonsleeping contexts
> is a significant general limitation on the Linux I2C stack.
> 
> What's unusual about this mechanism is that the usual solution
> (supporting asynchronous completions) doesn't seem to apply.
> Mike, could you recap why that is?

I seem to remember that a guy named Corey Minyard was working on adding
an asynchronous API to i2c-core. From what I recall, IPMI needs this.
This is certainly doable, however I am under the impression that this
isn't what most people need. People need to be able to do I2C
transactions _now_ during an interrupt, not at some later point after
the interrupt. Doing it at some later point doesn't actually require a
change to i2c-core as far as I can see, you can simply handle it with a
workqueue in your driver.

-- 
Jean Delvare



More information about the i2c mailing list