powerpc/5200: fix oops during going to standby
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Fri, 11 Jun 2010 01:52:35 +0000 (01:52 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 15 Jun 2010 20:47:04 +0000 (14:47 -0600)
commitfb73538e10c7fc4823a56e97bba600c2f9294012
tree4b3766db5c91161d90ae0a0a33fb6293f52109f7
parenta2c9a603c72be0d9a0780f196bff53ab0d517347
powerpc/5200: fix oops during going to standby

When going to standby mode mpc code maps the whole soc5200 node
to access warious MBAR registers. However as of_iomap uses 'reg'
property of device node, only small part of MBAR is getting mapped.
Thus pm code gets oops when trying to access high parts of MBAR.
As a way to overcome this, make mpc52xx_pm_prepare() explicitly
map whole MBAR (0xc0000).

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/52xx/mpc52xx_pm.c