[PATCH] Fujitsu extra buttons not working on S6010, Thinkpad Extra buttons not working on R31

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rafael,

And can you please actually post a patch?  The above is just a piece of C code
entirely out of context.
Actually, it was rather supposed to start a discussion because I have almost no experience with the ACPI subsystem.

Anyhow, here is the same in a (hopefully) well-formed patch file, tested on a Fujitsu S6010 and an IBM R31 running
the 3.17 kernel.

Thanks,
    Thomas


Signed-off-by: Thomas Richter <thor@xxxxxxxxxxxxxxxxx>
--- linux-3.17/arch/x86/kernel/acpi/boot.c.old 2014-10-07 15:43:44.000000000 +0200 +++ linux-3.17/arch/x86/kernel/acpi/boot.c 2014-10-07 16:04:33.000000000 +0200
@@ -609,9 +609,23 @@
        if (irq >= 0) {
                *irqp = irq;
                return 0;
-       }
+       } else {
+               unsigned int i;
+
+               for (i = 0; i < NR_IRQS_LEGACY; i++) {
+                       if (isa_irq_to_gsi[i] == gsi) {
+                               *irqp = i;
+                               return 0;
+                       }
+               }
+
+               if (gsi >= NR_IRQS_LEGACY)
+                       *irqp = gsi;
+               else
+                       *irqp = gsi_top + gsi;

-       return -1;
+               return 0;
+       }
 }
 EXPORT_SYMBOL_GPL(acpi_gsi_to_irq);

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux