]> git.baikalelectronics.ru Git - kernel.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)
commitf39bc5826b06addb1ff0d1bb3b8e5fc7b56aef43
tree0d7f9985229006a006ecad0056dad82e8f1664a9
parent8474c545c3f7fc8f64bc96761a6f3822b1b05517
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