mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* spi transfer with zero length
@ 2008-02-16 14:02 Atsushi Nemoto
  2008-02-16 18:58 ` David Brownell
  0 siblings, 1 reply; 3+ messages in thread
From: Atsushi Nemoto @ 2008-02-16 14:02 UTC (permalink / raw)
  To: David Brownell, spi-devel-general, linux-kernel

Hi.  Is it legal to use zero for 'len' field of struct spi_transfer?
I mean, len=0, tx_buf=rx_buf=NULL, delay_usecs!=0.

Some SPI devices need slightly long delay before first CLK edge after
CS assertion.  To achieve this, I think inserting using a zero length
transfer before real transfers.  But it seems some drivers do not
handle this case properly.

Is this driver's bug, or we need additional delay field in struct
spi_device for such case?

---
Atsushi Nemoto

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

end of thread, other threads:[~2008-02-17 14:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-16 14:02 spi transfer with zero length Atsushi Nemoto
2008-02-16 18:58 ` David Brownell
2008-02-17 14:16   ` Atsushi Nemoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®