PATCH/RFC [0/3]: Fix suspend and other acceleromter issues
simon.kagstrom at gmail.com
Sun Nov 16 16:09:46 CET 2008
On Sun, 16 Nov 2008 11:36:27 -0200
Werner Almesberger <werner at openmoko.org> 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);
More information about the openmoko-kernel