mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
rk30:modify spin_lock_irqsave/restore operation in spi driver
This commit is contained in:
parent
51cdb8bd29
commit
a886454ce5
|
|
@ -427,10 +427,11 @@ static void rk29_spi_dma_rxcb(void *buf_id,
|
|||
//if (!(dws->state & TXBUSY))
|
||||
// complete(&dws->rx_completion);
|
||||
|
||||
spin_unlock_irqrestore(&dws->lock, flags);
|
||||
|
||||
//DMA could not lose intterupt
|
||||
transfer_complete(dws);
|
||||
|
||||
spin_unlock_irqrestore(&dws->lock, flags);
|
||||
}
|
||||
|
||||
static void rk29_spi_dma_txcb(void *buf_id,
|
||||
|
|
@ -452,10 +453,11 @@ static void rk29_spi_dma_txcb(void *buf_id,
|
|||
//if (!(dws->state & RXBUSY))
|
||||
// complete(&dws->tx_completion);
|
||||
|
||||
spin_unlock_irqrestore(&dws->lock, flags);
|
||||
|
||||
//DMA could not lose intterupt
|
||||
transfer_complete(dws);
|
||||
|
||||
spin_unlock_irqrestore(&dws->lock, flags);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user