Reuse of spi_transfer and spi_message structures for cycliccommunication with SPI devices?

From: wzab
Date: Tue May 17 2011 - 16:53:26 EST


I'm writing a device driver for data acquisition system using A/D
converters connected via SPI interface.
To allow flexible ordering of received data, the content
of spi_transfer structures ans spi_message structures
must be set-up in quite sophisticate way before the transfer
may be started.
Refilling of those structures in each sampling cycle will be very
time consuming. I'd prefer to reuse the same structures again and
again, but I can't find any info in the kernel if I'm allowed to.

The documentation suggests to zero spi_transfer ans spi_message
before filling, but doesn't state if they may be used multiple times
with the same I/O buffers without zeroing and refilling.
TIA & Regards,
Wojtek Zabolotny
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at