Skip to content

Commit

Permalink
xilinx_axidma: (un)reversed irq initialisation
Browse files Browse the repository at this point in the history
The axidma irq orders are reversed in both the device model and the instantion.
Undid both reversal (for no net change). Also needs to be reversed for
consistency with Xilinx tools IRQ listing.

Signed-off-by: Peter A. G. Crosthwaite <[email protected]>
Signed-off-by: Edgar E. Iglesias <[email protected]>
  • Loading branch information
pete128 authored and edgarigl committed Jun 15, 2012
1 parent 07f9fd4 commit d85ba78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hw/xilinx.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ xilinx_axiethernetdma_create(void *dmach,
qdev_init_nofail(dev);

sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
sysbus_connect_irq(sysbus_from_qdev(dev), 0, irq2);
sysbus_connect_irq(sysbus_from_qdev(dev), 1, irq);
sysbus_connect_irq(sysbus_from_qdev(dev), 0, irq);
sysbus_connect_irq(sysbus_from_qdev(dev), 1, irq2);

return dev;
}
2 changes: 1 addition & 1 deletion hw/xilinx_axidma.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ static int xilinx_axidma_init(SysBusDevice *dev)
struct XilinxAXIDMA *s = FROM_SYSBUS(typeof(*s), dev);
int i;

sysbus_init_irq(dev, &s->streams[1].irq);
sysbus_init_irq(dev, &s->streams[0].irq);
sysbus_init_irq(dev, &s->streams[1].irq);

if (!s->dmach) {
hw_error("Unconnected DMA channel.\n");
Expand Down

0 comments on commit d85ba78

Please sign in to comment.