pinctrl: single: Fix missing flush of posted write for a wakeirq
authorTony Lindgren <tony@atomide.com>
Tue, 31 May 2016 21:17:06 +0000 (14:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 09:49:27 +0000 (11:49 +0200)
commit6701df3c0a3672faef3e2cfbc4747254e603324a
tree8578ab5671a2fb54771f5dbeed2a4039ef03b711
parentca3455867e4a98d34b65400ee82c7c3dacce510c
pinctrl: single: Fix missing flush of posted write for a wakeirq

commit 0ac3c0a4025f41748a083bdd4970cb3ede802b15 upstream.

With many repeated suspend resume cycles, the pin specific wakeirq
may not always work on omaps. This is because the write to enable the
pin interrupt may not have reached the device over the interconnect
before suspend happens.

Let's fix the issue with a flush of posted write with a readback.

Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/pinctrl-single.c