Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221530
b: refs/heads/master
c: 782a895
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Grant Likely committed Oct 22, 2010
1 parent 2dd2d9a commit 643d6c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b9603a0d7e395fb844af90fba71448bc8019077
refs/heads/master: 782a895693a52fd8b288c33bdd7e98357888fc1f
9 changes: 9 additions & 0 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@ static irqreturn_t bfin_spi_dma_irq_handler(int irq, void *dev_id)
"in dma_irq_handler dmastat:0x%x spistat:0x%x\n",
dmastat, spistat);

if (drv_data->rx != NULL) {
u16 cr = read_CTRL(drv_data);
/* discard old RX data and clear RXS */
bfin_spi_dummy_read(drv_data);
write_CTRL(drv_data, cr & ~BIT_CTL_ENABLE); /* Disable SPI */
write_CTRL(drv_data, cr & ~BIT_CTL_TIMOD); /* Restore State */
write_STAT(drv_data, BIT_STAT_CLR); /* Clear Status */
}

clear_dma_irqstat(drv_data->dma_channel);

/*
Expand Down

0 comments on commit 643d6c1

Please sign in to comment.