]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Device tree should only be updated once after suspend/migrate
authorHaren Myneni <hbabu@us.ibm.com>
Wed, 19 Feb 2014 20:56:52 +0000 (12:56 -0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 7 Mar 2014 04:54:49 +0000 (15:54 +1100)
commitd8c3cec3afa892f4d2b01a2bfa0a22f76cf92f51
tree4c9b453136921970b5a10e338a301174b7f98e21
parentbce1c0a9861fd89d089f21c8824de2f681eaaad6
powerpc/pseries: Device tree should only be updated once after suspend/migrate

The current code makes rtas calls for update-nodes, activate-firmware and then
update-nodes again. The FW provides the same data for both update-nodes calls.
As a result a proc entry exists error is reported for the second update while
adding device nodes.

This patch makes a single rtas call for update-nodes after activating the FW.
It also add rtas_busy delay for the activate-firmware rtas call.

Signed-off-by: Haren Myneni <hbabu@us.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/mobility.c