]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "PCI: imx6: Add support for active-low reset GPIO"
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 28 Mar 2016 21:45:36 +0000 (18:45 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Apr 2016 21:20:37 +0000 (16:20 -0500)
commit6d8b4c64f4ecd3e96f7e6ffdc2b20f2b870023c0
tree7bf85f7da01760ca8cd26eff77738a469f9dd913
parent4358ad30b78a3e000ac991e7bd80536e53e71f4e
Revert "PCI: imx6: Add support for active-low reset GPIO"

Commit 1d82404b476d ("PCI: imx6: Add support for active-low reset GPIO")
cause regressions on some boards like MX6 Gateworks Ventana, for example.

The reason for the breakage is that this commit sets the GPIO polarity in
the wrong logic level.

Also, the commit log is wrong because active-low reset GPIO is what the
driver used to support since the beginning.

So keep the old behavior that ignores the GPIO polarity specified in the
device tree and treat the PCI reset GPIO as active-low.

Reported-by: Krzysztof HaƂasa <khalasa@piap.pl>
Tested-by: Tim Harvey <tharvey@gateworks.com> # Gateworks Ventana
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
CC: stable@vger.kernel.org # v4.5+
drivers/pci/host/pci-imx6.c