Re: spi transfer with zero length

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Atsushi Nemoto <anemo@...>
Cc: <spi-devel-general@...>, <linux-kernel@...>
Date: Saturday, February 16, 2008 - 2:58 pm

On Saturday 16 February 2008, Atsushi Nemoto wrote:

Yes that should work ... it's uncommon, but not illegal.  Some
controller drivers may even handle that right!

If the delay were zero and cs_change didn't indicate a need to
briefly deselect the chip, it might make sense to reject such
a NOP transfer.  But that's not the case you identify.



For future reference ... could you identify a few such devices,
and say what "long" is relative to the clock period?

Some folk have just slowed down the clock in such cases, but
that's rather sub-optimal.



Feel free to submit patches fixing those bugs.



I'd like to avoid new parameters to cover case that can already
be expressed in the programming interface.  Cases that can't be
expressed ... different issue.  I suspect any patches updating
timing parameters should use nanoseconds not microseconds, fwiw.

- Dave
--
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)