On Mon, Apr 10, 2017 at 12:16 PM, Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> wrote: > After commit 47c950d10202 ("pinctrl: cherryview: Do not add all > southwest and north GPIOs to IRQ domain") the driver does not add all > GPIOs to the irqdomain. The reason for that is that those GPIOs cannot > generate IRQs at all, only GPEs (General Purpose Events). This causes > Linux virtual IRQ numbering to change. > > However, it seems some CYAN Chromebooks, including Acer Chromebook > hardcodes these Linux IRQ numbers in the ACPI tables of the machine. > Since the numbering is different now, the IRQ meant for keyboard does > not match the Linux virtual IRQ number anymore making the keyboard > non-functional. > > Work this around by adding special quirk just for these machines where > we add back all GPIOs to the irqdomain. Rest of the Cherryview/Braswell > based machines will not be affected by the change. > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=194945 > Fixes: 47c950d10202 ("pinctrl: cherryview: Do not add all southwest and north GPIOs to IRQ domain") > Reported-by: Adam S Levy <theadamlevy@xxxxxxxxx> > Signed-off-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> > --- > Changes from v1: > - Add BIOS date to DMI match string to keep this quirk from affecting > future BIOS versions where the issue might be fixed already. > > Marc, Linus, > > I went for adding the quirk here instead of quirking it in i8042 keyboard > driver because there might be other devices hard-coding the Linux IRQ > number. This way we only need to touch one driver. Patch applied for fixes. It is about time we get something upstream to fix this. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html