[Armadeus-commitlog] armadeus branch, master, updated. release-3.2-437-ge7ece47
Brought to you by:
sszy
|
From: Fabien M <fa...@us...> - 2010-06-14 17:06:44
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via e7ece475f346e212439d12fe591bf3af25f531ce (commit)
from 22516371a42b1d4458ab1b8b841ef36d7521c4fe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e7ece475f346e212439d12fe591bf3af25f531ce
Author: Fabien Marteau <fab...@ar...>
Date: Mon Jun 14 19:05:35 2010 +0200
[linux] Fix bug in irq mode gpio configuration
-----------------------------------------------------------------------
Summary of changes:
target/linux/modules/gpio/core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/modules/gpio/core.c b/target/linux/modules/gpio/core.c
index 89b6b73..8e3faf8 100755
--- a/target/linux/modules/gpio/core.c
+++ b/target/linux/modules/gpio/core.c
@@ -388,9 +388,9 @@ static void set_gpio_irq(unsigned int gpio, int value)
((value & 0x03) << (pin_num * 2));
} else {
return_value = shadows_irq_h[port_num] &
- (~(0x03 << (2 * (pin_num - MAX_NUMBER_OF_PINS))));
+ (~(0x03 << (2 * (pin_num - (port_size/2)))));
shadows_irq_h[port_num] = return_value |
- ((value & 0x03) << (2 * (pin_num - MAX_NUMBER_OF_PINS)));
+ ((value & 0x03) << (2 * (pin_num - (port_size/2))));
}
}
hooks/post-receive
--
armadeus
|