aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-03-10 15:28:29 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-03-10 15:28:29 +0000
commit51125fb616aef134ddd538021aea53b570a5c0a3 (patch)
tree74ba1604d15b3b8f28eb4cb1587a866544095e34 /target
parent0e3c23cdb2a362cb57ce5af7c764880f73787254 (diff)
downloadupstream-51125fb616aef134ddd538021aea53b570a5c0a3.tar.gz
upstream-51125fb616aef134ddd538021aea53b570a5c0a3.tar.bz2
upstream-51125fb616aef134ddd538021aea53b570a5c0a3.zip
make SPI work in full-duplex mode by default
SVN-Revision: 14841
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c b/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c
index 449b1d5adf..d12ae99ce6 100644
--- 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
-#define DRV_VER "0.1.0"
+#define DRV_VER "0.1.1"
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);
- 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 */