]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: imx6: Add support for active-low reset GPIO
authorPetr Štetiar <ynezz@true.cz>
Fri, 27 Nov 2015 10:56:34 +0000 (11:56 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2015 20:05:05 +0000 (14:05 -0600)
commit5c5fb40de8f14391a1238db05cef88754faf9229
tree322fe29af7fcae87e0f52ff9802f1635bf383352
parentbd534e691adada9697b47b6c27acbca611c6fad4
PCI: imx6: Add support for active-low reset GPIO

We previously used of_get_named_gpio(), which ignores the OF flags cell, so
the reset GPIO defaulted to "active high." This doesn't work on the Toradex
Apalis SoM with Ixora base board, which has an active-low reset GPIO.

Use devm_gpiod_get_optional() instead so we pay attention to the active
high/low flag.  This also adds support for GPIOs described via ACPI.

[bhelgaas: changelog]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/host/pci-imx6.c