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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 00:20:01 +0000 (20:20 -0400)
commit0e16f4fb69810c58bdf142dd85ee92e46576b877
tree46296063d09c3f520814d03a34192f693497b0fa
parent65c68fd8c1c79178d17217fb045b80badecdd472
pinctrl: single: Fix missing flush of posted write for a wakeirq

[ Upstream commit 0ac3c0a4025f41748a083bdd4970cb3ede802b15 ]

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.

Cc: stable@vger.kernel.org
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: Sasha Levin <sasha.levin@oracle.com>
drivers/pinctrl/pinctrl-single.c