[3/3] spi: dw_spi: refine the IRQ mode working flow
diff mbox

Message ID 4B55BFC5.506@octasic.com
State Not Applicable
Headers show

Commit Message

Jean-Hugues Deschenes Jan. 19, 2010, 2:20 p.m. UTC
None

Patch
diff mbox

diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c
index 31620fa..01ad79a 100644
--- a/drivers/spi/dw_spi.c
+++ b/drivers/spi/dw_spi.c
@@ -832,6 +832,11 @@  int __devinit dw_spi_add_host(struct dw_spi *dws)
                goto exit;
        }
 
+       if (!dws->num_cs)
+               dws->num_cs = 4;
+       if (!dws->fifo_len)
+               dws->fifo_len = 40;
+      
        dws->master = master;
        dws->type = SSI_MOTO_SPI;
        dws->prev_chip = NULL;