summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-10-18 11:08:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-12 19:21:19 +0100
commit30b969392cf25a586a856a5de73cb8acbe6345da (patch)
tree7f0d6503c24ea74f187b70e3ee89963b2bfb2263 /block/blk-cgroup.c
parentca79bb7e1168726a64f5dfbe409e9d9b3e1350e1 (diff)
downloadlinux-stable-30b969392cf25a586a856a5de73cb8acbe6345da.tar.gz
linux-stable-30b969392cf25a586a856a5de73cb8acbe6345da.tar.bz2
linux-stable-30b969392cf25a586a856a5de73cb8acbe6345da.zip
pinctrl: cherryview: Fix irq_valid_mask calculation
[ Upstream commit 63bdef6cd6941917c823b9cc9aa0219d19fcb716 ] Commit 03c4749dd6c7 ("gpio / ACPI: Drop unnecessary ACPI GPIO to Linux GPIO translation") has made the cherryview gpio numbers sparse, to get a 1:1 mapping between ACPI pin numbers and gpio numbers in Linux. This has greatly simplified things, but the code setting the irq_valid_mask was not updated for this, so the valid mask is still in the old "compressed" numbering with the gaps in the pin numbers skipped, which is wrong as irq_valid_mask needs to be expressed in gpio numbers. This results in the following error on devices using pin 24 (0x0018) on the north GPIO controller as an ACPI event source: [ 0.422452] cherryview-pinctrl INT33FF:01: Failed to translate GPIO to IRQ This has been reported (by email) to be happening on a Caterpillar CAT T20 tablet and I've reproduced this myself on a Medion Akoya e2215t 2-in-1. This commit uses the pin number instead of the compressed index into community->pins to clear the correct bits in irq_valid_mask for GPIOs using GPEs for interrupts, fixing these errors and in case of the Medion Akoya e2215t also fixing the LID switch not working. Cc: stable@vger.kernel.org Fixes: 03c4749dd6c7 ("gpio / ACPI: Drop unnecessary ACPI GPIO to Linux GPIO translation") Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block/blk-cgroup.c')
0 files changed, 0 insertions, 0 deletions