Skip to content

Commit 4dc7b4b

Browse files
dgibsonpaulusmack
authored andcommitted
[POWERPC] Fix setting of irq trigger type in UIC driver
The UIC (interrupt controller in 4xx embedded CPUs) driver currently missets the IRQ_lEVEL flag in desc->status, due to a thinko. This patch fixes the bug. Currently this is only a cosmetic problem (affects the output in /proc/interrupts), however subsequent patches will use the IRQ_LEVEL flag to affect flow handling. Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent a05afe9 commit 4dc7b4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/sysdev/uic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static int uic_set_irq_type(unsigned int virq, unsigned int flow_type)
142142

143143
desc->status &= ~(IRQ_TYPE_SENSE_MASK | IRQ_LEVEL);
144144
desc->status |= flow_type & IRQ_TYPE_SENSE_MASK;
145-
if (trigger)
145+
if (!trigger)
146146
desc->status |= IRQ_LEVEL;
147147

148148
spin_unlock_irqrestore(&uic->lock, flags);

0 commit comments

Comments
 (0)