From f7f453685cb56a12ce0c2d9be74f033bfc35fc3b Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 10 Mar 2009 15:28:29 +0000 Subject: [PATCH] [brcm63xx] make SPI work in full-duplex mode by default git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14841 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c | 4 ++-- 1 file 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 449b1d5ad..d12ae99ce 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 #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 */ -- 2.35.1