diff options
author | Sjur Brændeland <sjur.brandeland@stericsson.com> | 2010-11-01 11:52:48 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-03 18:50:03 -0700 |
commit | 2c24a5d1b4f48900f3ed1b1ad70c51f1983df822 (patch) | |
tree | c40f3756a0b64af118e64dd8f345c6e6649e66a8 /drivers/net/caif/caif_spi_slave.c | |
parent | f2527ec436fd675f08a8e7434f6e940688cb96d0 (diff) |
caif: SPI-driver bugfix - incorrect padding.
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/caif/caif_spi_slave.c')
-rw-r--r-- | drivers/net/caif/caif_spi_slave.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/caif/caif_spi_slave.c b/drivers/net/caif/caif_spi_slave.c index 2111dbfea6f..1b9943a4eda 100644 --- a/drivers/net/caif/caif_spi_slave.c +++ b/drivers/net/caif/caif_spi_slave.c @@ -36,10 +36,15 @@ static inline int forward_to_spi_cmd(struct cfspi *cfspi) #endif int spi_frm_align = 2; -int spi_up_head_align = 1; -int spi_up_tail_align; -int spi_down_head_align = 3; -int spi_down_tail_align = 1; + +/* + * SPI padding options. + * Warning: must be a base of 2 (& operation used) and can not be zero ! + */ +int spi_up_head_align = 1 << 1; +int spi_up_tail_align = 1 << 0; +int spi_down_head_align = 1 << 2; +int spi_down_tail_align = 1 << 1; #ifdef CONFIG_DEBUG_FS static inline void debugfs_store_prev(struct cfspi *cfspi) |