[LEDE-DEV] [PATCH] brcm63xx: fix external IRQ edge type sense

Florian Fainelli f.fainelli at gmail.com
Tue Feb 7 19:56:59 PST 2017


Le 02/07/17 à 12:36, Daniel Gonzalez Cabanelas a écrit :
> Fix the register for configuring rising/falling edge
> 
> Rising should be sense=1, and falling sense=0. 
> The old driver used these values, but the new one have
> them flipped.

This should probably be sent upstream as well, right?

> 
> Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu at gmail.com>
> diff --git a/target/linux/brcm63xx/patches-4.4/321-irqchip-add-support-for-bcm6345-style-external-inter.patch b/target/linux/brcm63xx/patches-4.4/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
> index 2526456..0135cb2 100644
> --- a/target/linux/brcm63xx/patches-4.4/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
> +++ b/target/linux/brcm63xx/patches-4.4/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
> @@ -198,10 +198,10 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
>  +		break;
>  +
>  +	case IRQ_TYPE_EDGE_RISING:
> ++		sense = 1;
>  +		break;
>  +
>  +	case IRQ_TYPE_EDGE_FALLING:
> -+		sense = 1;
>  +		break;
>  +
>  +	case IRQ_TYPE_LEVEL_HIGH:
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
> 


-- 
Florian



More information about the Lede-dev mailing list