]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pinctrl: cherryview: Associate IRQ descriptors to irqdomain
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 25 Apr 2018 10:32:11 +0000 (13:32 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:57:55 +0000 (14:57 +0200)
commit1f6c5883ddc8cbf7c479b4358f2589f596fa4e25
tree4979a7fd851b981104c39dd76bb51d92a0f7aaee
parentf5925724ea33180d8b09edd06214abedeb21d830
pinctrl: cherryview: Associate IRQ descriptors to irqdomain

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 83b9dc11312f48a561594a895672abb6cb2a2250 ]

When we dropped the custom Linux GPIO translation it resulted that the
IRQ numbers changed slightly as well. Normally this would be fine
because everyone is expected to use controller relative GPIO numbers and
ACPI GpioIo/GpioInt resources. However, there is a certain set of
Intel_Strago based Chromebooks where i8042 keyboard controller IRQ
number is hardcoded be 182 (this is corrected with newer coreboot but
the older ones still have the hardcoded Linux IRQ number). Because of
this hardcoded IRQ number keyboard on those systems accidentally broke
again.

Fix this by iteratively associating IRQ descriptors to the chip irqdomain
so that there are no gaps on those systems. Other systems are not
affected.

Fixes: 03c4749dd6c7 ("gpio / ACPI: Drop unnecessary ACPI GPIO to Linux GPIO translation")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=199463
Reported-by: Sultan Alsawaf <sultanxda@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/pinctrl/intel/pinctrl-cherryview.c