lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4B536710.4010304@gmail.com>
Date:	Sun, 17 Jan 2010 21:37:52 +0200
From:	Paulius Zaleckas <paulius.zaleckas@...il.com>
To:	Roel Kluin <roel.kluin@...il.com>
CC:	linux-arm-kernel@...ts.infradead.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Gemini: wrong registers used to set reg_level in gpio_set_irq_type()?

On 01/14/2010 11:11 PM, Roel Kluin wrote:
> It appears the wrong GPIO registers were used
>
> Signed-off-by: Roel Kluin<roel.kluin@...il.com>
> ---
> I am not sure whether this is right so please review.

Yes, you are right. Thanks for spotting.
I put this patch in my queue.

> diff --git a/arch/arm/mach-gemini/gpio.c b/arch/arm/mach-gemini/gpio.c
> index e726385..fe3bd5a 100644
> --- a/arch/arm/mach-gemini/gpio.c
> +++ b/arch/arm/mach-gemini/gpio.c
> @@ -86,7 +86,7 @@ static int gpio_set_irq_type(unsigned int irq, unsigned int type)
>   	unsigned int reg_both, reg_level, reg_type;
>
>   	reg_type = __raw_readl(base + GPIO_INT_TYPE);
> -	reg_level = __raw_readl(base + GPIO_INT_BOTH_EDGE);
> +	reg_level = __raw_readl(base + GPIO_INT_LEVEL);
>   	reg_both = __raw_readl(base + GPIO_INT_BOTH_EDGE);
>
>   	switch (type) {
> @@ -117,7 +117,7 @@ static int gpio_set_irq_type(unsigned int irq, unsigned int type)
>   	}
>
>   	__raw_writel(reg_type, base + GPIO_INT_TYPE);
> -	__raw_writel(reg_level, base + GPIO_INT_BOTH_EDGE);
> +	__raw_writel(reg_level, base + GPIO_INT_LEVEL);
>   	__raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE);
>
>   	gpio_ack_irq(irq);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ