lkml.org 
[lkml]   [2008]   [Mar]   [29]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 29 Mar 2008 17:56:51 +0100
FromHaavard Skinnemoen <>
SubjectRe: [PATCH] atmel_spi: support zero length transfer (resend)
Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> A spi transfer with zero length is not invalid.  For example, such
> transfer (len == 0 && delay_usecs != 0) can be used to achieve delay
> before first CLK edge after chipselect assertion.
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
> ---
> Though some discussion about zero length transfer were raised by this
> patch last time, I think there were no explicit objection to this
> patch itself.

Well, the patch doesn't seem to do any harm, but I can't see much of a
point to it either if zero-length transfers aren't going to be
allowed...

Also, if the length is zero, the driver will end up doing a memset with
length zero at some point. Is that allowed?

Haavard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-03-29 18:01    [from the cache]
©2003-2008