On Sun, 16 Nov 2008 11:36:27 -0200 Werner Almesberger <[EMAIL PROTECTED]> wrote:
> Andy Green wrote: > > what might be worth effort is bringing it under or extending the > > mainline SPI somehow so it can operate inside interrupt context. > > Yup, that would be nice. I guess a real-life example where it makes a > big different would help with lobbying such a change into mainline. Well isn't the accelerometer driver a pretty good example? Implementing it using the Linux SPI interface has shown to be both terribly inefficient and prone to errors (disabling interrupts until the workqueue handler has run etc). Perhaps something like spi_sync, extern int spi_sync(struct spi_device *spi, struct spi_message *message); // Simon
