Commit db7e1bc4 authored by viresh kumar's avatar viresh kumar Committed by Russell King
Browse files

ARM: 6061/1: PL061 GPIO: Bug fix - setting gpio for HIGH_LEVEL interrupt is not working.

In current implementation of PL061, setting type of irq to HIGH_LEVEL is not
working. This patch fixes this bug.
Signed-off-by: default avatarViresh Kumar <>
Acked-by: default avatarBaruch Siach <>
Signed-off-by: default avatarRussell King <>
parent b56ba8aa
......@@ -189,7 +189,7 @@ static int pl061_irq_type(unsigned irq, unsigned trigger)
gpioibe &= ~(1 << offset);
if (trigger & IRQ_TYPE_EDGE_RISING)
gpioiev |= 1 << offset;
else if (trigger & IRQ_TYPE_EDGE_FALLING)
gpioiev &= ~(1 << offset);
writeb(gpioibe, chip->base + GPIOIBE);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment