]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: armada-37xx: change suspend/resume time
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 8 Jan 2019 16:28:43 +0000 (17:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 21 Jan 2019 13:12:50 +0000 (14:12 +0100)
commit3f5a0dd2f00f71d864a3ef0c1869f55aaf89388e
treeccd5ddce025a58235b68a9572645f94394ff3b62
parent3db43215587eeac96dc3c259d2fa2c1ee4f6abd2
pinctrl: armada-37xx: change suspend/resume time

Armada 3700 PCIe IP relies on the pinctrl IP managed by this
driver. For reasons related to the PCI core's organization when
suspending/resuming, PCI host controller drivers must reconfigure
their register at suspend_noirq()/resume_noirq() which happens after
suspend()/suspend_late() and before resume_early()/resume().

In the current state, after resuming from a suspend to RAM cycle the
PCIe IP is reconfigured before the pinctrl one which produces an
interrupt storm. The solution to support PCIe resume operation is to
change the "priority" of this pinctrl driver PM callbacks to
"_noirq()".

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c