OSDN Git Service

powerpc/mpc5200: Fix lite5200b suspend/resume
authorTim Yamin <plasm@roo.me.uk>
Tue, 17 Jun 2008 08:33:14 +0000 (09:33 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 1 Jul 2008 22:08:24 +0000 (16:08 -0600)
commit18d76ac9a47742558bca3bbc2f7c41870ac744c8
tree0073d1050be578b4f71f3f67f303f06cee1d4494
parent1702b52092e9a6d05398d3f9581ddc050ef00d06
powerpc/mpc5200: Fix lite5200b suspend/resume

Suspend/resume ("echo mem > /sys/power/state") does not work with
vanilla kernels -- the system does not suspend correctly and just
hangs. This patch fixes this so suspend/resume works:

1) of_iomap does not map the whole 0xC000 of the MPC5200 immr so
saving registers does not work.
2) PCI registers need to be saved and restored.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/52xx/lite5200_pm.c