RE: [PATCH] ad7877: fix spi word size to 16 bit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hennerich, Michael
Date: Monday, May 17, 2010 - 1:14 am

Oskar Schirmer wrote on 2010-05-17:

100% agreed.

Two ways to address the issue:
1) Forcing spi->bits_per_word = 16 like this patch does.
2) Or going with the default 8-bit transfers and using be16_to_cpu().

Personally I prefer 1) unless someone tells me that not all SPI bus drivers
support 16-bit transfers.

Greetings,
Michael

Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 4036 Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ad7877: fix spi word size to 16 bit, Oskar Schirmer, (Thu May 6, 3:37 am)
RE: [PATCH] ad7877: fix spi word size to 16 bit, Hennerich, Michael, (Thu May 6, 4:18 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Mike Frysinger, (Thu May 6, 11:26 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Daniel Glöckner, (Fri May 7, 2:41 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Mike Frysinger, (Fri May 7, 11:23 am)
Re: [PATCH v3] ad7877: keep dma rx buffers in seperate cac ..., Christoph Lameter, (Tue May 11, 6:57 am)
Re: [PATCH v3] ad7877: keep dma rx buffers in seperate cac ..., Christoph Lameter, (Tue May 11, 1:21 pm)
Re: [PATCH v3] ad7877: keep dma rx buffers in seperate cac ..., Christoph Lameter, (Tue May 11, 1:46 pm)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Dmitry Torokhov, (Thu May 13, 12:53 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Oskar Schirmer, (Sat May 15, 11:15 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Mike Frysinger, (Sun May 16, 12:25 pm)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Oskar Schirmer, (Mon May 17, 12:29 am)
RE: [PATCH] ad7877: fix spi word size to 16 bit, Hennerich, Michael, (Mon May 17, 1:14 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Oskar Schirmer, (Mon May 17, 1:41 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Mike Frysinger, (Mon May 17, 4:49 pm)
RE: [PATCH] ad7877: fix spi word size to 16 bit, H Hartley Sweeten, (Mon May 17, 5:18 pm)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Oskar Schirmer, (Tue May 18, 1:32 am)
[PATCH v2] ad7877: fix spi word size to 16 bit, Oskar Schirmer, (Tue May 18, 1:34 am)
Re: [PATCH] ad7877: fix spi word size to 16 bit, Daniel Glöckner, (Tue May 18, 2:37 am)