The status still does not show up in /proc/apm (the fields where it
should appear are all 0xff anyway), but at least now /proc/interrupts
reports that the irq is indeed seen by the kernel.
---
arch/arm/mach-pxa/h3900/h3900_battery.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/h3900/h3900_battery.c b/arch/arm/mach-pxa/h3900/h3900_battery.c
index aabb3b7..65b6c6f 100644
--- a/arch/arm/mach-pxa/h3900/h3900_battery.c
+++ b/arch/arm/mach-pxa/h3900/h3900_battery.c
@@ -17,6 +17,7 @@
#include <linux/pm.h>
#include <linux/err.h>
#include <linux/interrupt.h>
+#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/apm-emulation.h>
@@ -60,6 +61,7 @@ h3900_battery_init (void)
asic3_set_gpio_out_b(&h3900_asic3.dev,
GPIO3_CH_TIMER, GPIO3_CH_TIMER);
+ set_irq_type (IRQ_GPIO (GPIO_NR_H3900_AC_IN_N), IRQ_TYPE_EDGE_BOTH);
result = request_irq (IRQ_GPIO (GPIO_NR_H3900_AC_IN_N), h3900_ac_in_isr,
SA_INTERRUPT | SA_SAMPLE_RANDOM, "AC presence", NULL);
if (result) {
Received on Sat May 03 2008 - 04:06:41 EDT
This archive was generated by hypermail 2.2.0 : Thu May 22 2008 - 08:36:41 EDT