diff options
author | Feng Tang <feng.tang@intel.com> | 2010-01-20 21:49:45 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-01-20 21:49:45 +0100 |
commit | 552e450929a7298cc8834fd2824a60b2e914f70e (patch) | |
tree | 1b9568370d1b40f23dd4d73765e98ff74665eb07 /drivers/spi/dw_spi_pci.c | |
parent | spi/dw_spi: add a missed dw_spi_remove_host() in exit sequence (diff) | |
download | linux-552e450929a7298cc8834fd2824a60b2e914f70e.tar.xz linux-552e450929a7298cc8834fd2824a60b2e914f70e.zip |
spi/dw_spi: refine the IRQ mode working flow
Now dw_spi core fully supports 3 transfer modes: pure polling,
DMA and IRQ mode. IRQ mode will use the FIFO half empty as
the IRQ trigger, so each interface driver need set the fifo_len,
so that core driver can handle it properly
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/dw_spi_pci.c')
-rw-r--r-- | drivers/spi/dw_spi_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/dw_spi_pci.c b/drivers/spi/dw_spi_pci.c index 7980f1443ce1..1f0735f9cc76 100644 --- a/drivers/spi/dw_spi_pci.c +++ b/drivers/spi/dw_spi_pci.c @@ -73,6 +73,7 @@ static int __devinit spi_pci_probe(struct pci_dev *pdev, dws->num_cs = 4; dws->max_freq = 25000000; /* for Moorestwon */ dws->irq = pdev->irq; + dws->fifo_len = 40; /* FIFO has 40 words buffer */ ret = dw_spi_add_host(dws); if (ret) |