projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[brcm63xx] make SPI work in full-duplex mode by default
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
brcm63xx
/
files
/
drivers
/
spi
/
bcm63xx_spi.c
diff --git
a/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c
b/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c
index 449b1d5adf9697b551ee5955288d849848901a44..d12ae99ce653d0d30414a9e4261fe20a7b31045c 100644
(file)
--- a/
target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c
+++ b/
target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c
@@
-36,7
+36,7
@@
#include <bcm63xx_dev_spi.h>
#define PFX KBUILD_MODNAME
#include <bcm63xx_dev_spi.h>
#define PFX KBUILD_MODNAME
-#define DRV_VER "0.1.
0
"
+#define DRV_VER "0.1.
1
"
struct bcm63xx_spi {
/* bitbang has to be first */
struct bcm63xx_spi {
/* bitbang has to be first */
@@
-207,7
+207,7
@@
static int bcm63xx_txrx_bufs(struct spi_device *spi, struct spi_transfer *t)
/* Fill in the Message control register */
msg_ctl = bcm_spi_readb(SPI_MSG_CTL);
msg_ctl |= (t->len << SPI_BYTE_CNT_SHIFT);
/* Fill in the Message control register */
msg_ctl = bcm_spi_readb(SPI_MSG_CTL);
msg_ctl |= (t->len << SPI_BYTE_CNT_SHIFT);
- msg_ctl |= (SPI_
HD_R
<< SPI_MSG_TYPE_SHIFT);
+ msg_ctl |= (SPI_
FD_RW
<< SPI_MSG_TYPE_SHIFT);
bcm_spi_writeb(msg_ctl, SPI_MSG_CTL);
/* Issue the transfer */
bcm_spi_writeb(msg_ctl, SPI_MSG_CTL);
/* Issue the transfer */