linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reuse of spi_transfer and spi_message structures for cyclic communication with SPI devices?
@ 2011-05-17 20:23 wzab
  0 siblings, 0 replies; 2+ messages in thread
From: wzab @ 2011-05-17 20:23 UTC (permalink / raw)
  To: linux-kernel

Hi,

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Reuse of spi_transfer and spi_message structures for cyclic communication with SPI devices?
@ 2011-05-17 19:21 wzab
  0 siblings, 0 replies; 2+ messages in thread
From: wzab @ 2011-05-17 19:21 UTC (permalink / raw)
  Cc: linux-kernel

Hi,

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-17 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-17 20:23 Reuse of spi_transfer and spi_message structures for cyclic communication with SPI devices? wzab
  -- strict thread matches above, loose matches on Subject: below --
2011-05-17 19:21 wzab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).