Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210629
b: refs/heads/master
c: cbcc062
h: refs/heads/master
i:
  210627: 6f9fae5
v: v3
  • Loading branch information
Yong Wang authored and Grant Likely committed Sep 8, 2010
1 parent 5ad2c32 commit 00796d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d8f86b56093d7b06d81d4063d5b9a4cbf887e75
refs/heads/master: cbcc062abb16d39839b3d8d4e3d20360fc21eb58
7 changes: 6 additions & 1 deletion trunk/drivers/spi/dw_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ static irqreturn_t interrupt_transfer(struct dw_spi *dws)
static irqreturn_t dw_spi_irq(int irq, void *dev_id)
{
struct dw_spi *dws = dev_id;
u16 irq_status, irq_mask = 0x3f;

irq_status = dw_readw(dws, isr) & irq_mask;
if (!irq_status)
return IRQ_NONE;

if (!dws->cur_msg) {
spi_mask_intr(dws, SPI_INT_TXEI);
Expand Down Expand Up @@ -883,7 +888,7 @@ int __devinit dw_spi_add_host(struct dw_spi *dws)
dws->dma_inited = 0;
dws->dma_addr = (dma_addr_t)(dws->paddr + 0x60);

ret = request_irq(dws->irq, dw_spi_irq, 0,
ret = request_irq(dws->irq, dw_spi_irq, IRQF_SHARED,
"dw_spi", dws);
if (ret < 0) {
dev_err(&master->dev, "can not get IRQ\n");
Expand Down

0 comments on commit 00796d1

Please sign in to comment.