]> git.proxmox.com Git - qemu.git/commit
xilinx_axidma: Do not set DMA .notify to NULL after notify
authorWendy Liang <jliang@xilinx.com>
Fri, 7 Jun 2013 03:05:38 +0000 (13:05 +1000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 11 Jun 2013 23:22:30 +0000 (18:22 -0500)
commit6f3718c73bc13b8f3f2d1fe3421befd50ed3037e
treeb121455ecf74ee1e1664a57b5a1236f3ed7742b9
parent1fb147f4431759a442b024db47e9904cf0d90131
xilinx_axidma: Do not set DMA .notify to NULL after notify

If a stream notify function is not ready, it may re-populate the notify call-
back to indicate it should be re-polled later. This break in this usage, as
immediately following the notify() call, .notify is set to NULL. reverse the
ordering of the notify call and NULL assignment accordingly.

[PC: Reworked commit message]

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
(cherry picked from commit 4f293bd6e53739e089f33b458f70a9c4ac136b92)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/dma/xilinx_axidma.c