summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Zhang <akz002@freescale.com>2008-01-22 15:29:40 -0600
committerDaniel Schaeffer <daniel.schaeffer@timesys.com>2008-08-25 15:20:30 -0400
commit259c2dc0d0dc7b6ccb34e54093d4f3d83811d6ce (patch)
tree4d151774b1c98ba5e7c4f4a5b65eda84bb052289
parent4d822426876cb94198cdea6d67fea3efd61317b4 (diff)
ENGR00053775 fix suspend to ram wakeup failure
Description: This patch is to fix the problem of -- System failed to wakeup when suspend to ram with "echo mem > /sys/power/state". This is caused by the spi suspend routine is called too early. The fix is to call the mxc spi suspend routine in a later stage.
-rw-r--r--drivers/spi/mxc_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c
index 8f78d7743731..cccafa477142 100644
--- a/drivers/spi/mxc_spi.c
+++ b/drivers/spi/mxc_spi.c
@@ -876,8 +876,8 @@ static struct platform_driver mxc_spi_driver = {
},
.probe = mxc_spi_probe,
.remove = mxc_spi_remove,
- .suspend = mxc_spi_suspend,
- .resume = mxc_spi_resume,
+ .suspend_late = mxc_spi_suspend,
+ .resume_early = mxc_spi_resume,
};
/*!