]> asedeno.scripts.mit.edu Git - linux.git/commit
mfd: axp20x: Use IRQF_TRIGGER_LOW on the axp288
authorHans de Goede <hdegoede@redhat.com>
Wed, 14 Dec 2016 13:52:05 +0000 (14:52 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 13 Feb 2017 09:29:40 +0000 (09:29 +0000)
commit0a5454c901aea0fef99f5ef7910c69c501817ae1
tree0d7f9985229006a006ecad0056dad82e8f1664a9
parent34a23327697d558a582e356573d7d36773996fbb
mfd: axp20x: Use IRQF_TRIGGER_LOW on the axp288

The interrupt line of the entire family of axp2xx pmics is active-low,
for devicetree enumerated irqs, this is dealt with in the devicetree.

ACPI irq resources have a flag field for this too, I tried using this
on my CUBE iwork8 Air tablet, but it does not contain the right data.

The dstd shows the irq listed as either ActiveLow or ActiveHigh,
depending on the OSID variable, which seems to be set by the
"OS IMAGE ID" in the BIOS/EFI setup screen.

Since the acpi-resource info is no good, simply pass in IRQF_TRIGGER_LOW
on the axp288.

Together with the other axp288 fixes in this series, this fixes the axp288
irq contineously triggering.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c
include/linux/mfd/axp20x.h