Skip to contentSkip to conversation

Fix typo in eTSEC Ethernet controller

PATCH Applied Fabien Chouteau 2 participants 3 messages Apr 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typo in eTSEC Ethernet controller

IRQ are lowered when ievent bit is cleared, so irq_pulse makes no sense here...

---
 hw/net/fsl_etsec/rings.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/fsl_etsec/rings.c +1 -1
index e36cfbe..d4a494f 100644
@@ -159,7 +159,7 @@ static void ievent_set(eTSEC    *etsec,
 
     if ((flags & IEVENT_RXB && etsec->regs[IMASK].value & IMASK_RXBEN)
         || (flags & IEVENT_RXF && etsec->regs[IMASK].value & IMASK_RXFEN)) {
-        qemu_irq_pulse(etsec->rx_irq);
+        qemu_irq_raise(etsec->rx_irq);
         RING_DEBUG("%s Raise Rx IRQ\n", __func__);
     }
 }
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 4 lines · Fabien Chouteau

IRQ are lowered when ievent bit is cleared, so irq_pulse makes no sense here...

Thanks, applied to ppc-next. Given that the wiring with boards is still missing I don't think this is a critical 2.0 fix.

Alex

#2 lore raw
Quoted 9 lines · Alexander Graf
Quoted 4 lines · Fabien Chouteau

IRQ are lowered when ievent bit is cleared, so irq_pulse makes no sense here...

Thanks, applied to ppc-next.

Thanks Alex,

Quoted 2 lines

Given that the wiring with boards is still missing I don't think this is a critical 2.0 fix.

That's right.

Regards,