projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2c0b4c
)
[3/4] I/OAT: fix async_tx.callback checking
author
Maciej Sosnowski
<
[email protected]
>
Fri, 7 Nov 2008 01:46:55 +0000
(
01:46
+0000)
committer
David S. Miller
<
[email protected]
>
Mon, 10 Nov 2008 23:01:00 +0000
(15:01 -0800)
async_tx.callback should be checked for the first
not the last descriptor in the chain.
Cc: <
[email protected]
>
Signed-off-by: Maciej Sosnowski <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/dma/ioat_dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ioat_dma.c
b/drivers/dma/ioat_dma.c
index dbb8bbb83a32c0240faac30522f931d0109d8c01..ecd743f7cc617b9921b7d08e553da0264d8c401c 100644
(file)
--- a/
drivers/dma/ioat_dma.c
+++ b/
drivers/dma/ioat_dma.c
@@
-525,7
+525,7
@@
static dma_cookie_t ioat1_tx_submit(struct dma_async_tx_descriptor *tx)
}
hw->ctl = IOAT_DMA_DESCRIPTOR_CTL_CP_STS;
- if (
new
->async_tx.callback) {
+ if (
first
->async_tx.callback) {
hw->ctl |= IOAT_DMA_DESCRIPTOR_CTL_INT_GN;
if (first != new) {
/* move callback into to last desc */
@@
-617,7
+617,7
@@
static dma_cookie_t ioat2_tx_submit(struct dma_async_tx_descriptor *tx)
}
hw->ctl |= IOAT_DMA_DESCRIPTOR_CTL_CP_STS;
- if (
new
->async_tx.callback) {
+ if (
first
->async_tx.callback) {
hw->ctl |= IOAT_DMA_DESCRIPTOR_CTL_INT_GN;
if (first != new) {
/* move callback into to last desc */