diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2016-09-20 15:15:22 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-09-23 14:57:33 +0200 |
commit | 47c950d1020226179d278297c85ba6a988ee398b (patch) | |
tree | a9736a87b36310c08443fbd92b945b93a5615621 /scripts/mod | |
parent | 0565f49cfe937640c2347f6d7f40ad2f4e4f088b (diff) | |
download | linux-47c950d1020226179d278297c85ba6a988ee398b.tar.bz2 |
pinctrl: cherryview: Do not add all southwest and north GPIOs to IRQ domain
It turns out that for north and southwest communities, they can only
generate GPIO interrupts for lower 8 interrupts (IntSel value). The upper
part (8-15) can only generate GPEs (General Purpose Events).
Now the reason why EC events such as pressing hotkeys does not work if we
mask all the interrupts is that in order to generate either interrupts or
GPEs the INTMASK register must have that particular interrupt unmasked. In
case of GPEs the CPU does not trigger normal interrupt (and thus the GPIO
driver does not see it) but instead it causes SCI (System Control
Interrupt) to be triggered with the GPE in question set.
To make this all work as expected we only add those GPIOs to the IRQ domain
that can actually generate interrupts (IntSel value 0-7) and skip others.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/mod')
0 files changed, 0 insertions, 0 deletions