mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 05:43:20 +02:00
3d0fed711e
* message pump conversion * not using stopping state * setting spi driver mode bits git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32078 3c298f89-4303-0410-b956-a3cf2f4a3e73
25 lines
1002 B
Diff
25 lines
1002 B
Diff
From 88a3a255a510ed193bf0cc35424761c3c9247586 Mon Sep 17 00:00:00 2001
|
|
From: Florian Fainelli <florian@openwrt.org>
|
|
Date: Fri, 20 Apr 2012 15:37:35 +0200
|
|
Subject: [PATCH] spi/bcm63xx: set master driver mode_bits.
|
|
|
|
We were not properly advertising the MODE bits supported by this driver, fix
|
|
that.
|
|
|
|
Signed-off-by: Florian Fainelli <florian@openwrt.org>
|
|
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
|
|
---
|
|
drivers/spi/spi-bcm63xx.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/spi/spi-bcm63xx.c
|
|
+++ b/drivers/spi/spi-bcm63xx.c
|
|
@@ -404,6 +404,7 @@ static int __devinit bcm63xx_spi_probe(s
|
|
master->prepare_transfer_hardware = bcm63xx_spi_prepare_transfer;
|
|
master->unprepare_transfer_hardware = bcm63xx_spi_unprepare_transfer;
|
|
master->transfer_one_message = bcm63xx_spi_transfer_one;
|
|
+ master->mode_bits = MODEBITS;
|
|
bs->speed_hz = pdata->speed_hz;
|
|
bs->tx_io = (u8 *)(bs->regs + bcm63xx_spireg(SPI_MSG_DATA));
|
|
bs->rx_io = (const u8 *)(bs->regs + bcm63xx_spireg(SPI_RX_DATA));
|