spi transfer with zero length

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Brownell <david-b@...>, <spi-devel-general@...>, <linux-kernel@...>
Date: Saturday, February 16, 2008 - 10:02 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
spi transfer with zero length, Atsushi Nemoto, (Sat Feb 16, 10:02 am)
Re: spi transfer with zero length, David Brownell, (Sat Feb 16, 2:58 pm)
Re: spi transfer with zero length, Atsushi Nemoto, (Sun Feb 17, 10:16 am)