summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:27:21 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:27:21 -0600
commitaea2c59fab46904c36b9d7af1b777f9faeb290f3 (patch)
tree14e7c7df11b1e1391ae4c419164b97f6c13adaea
parent594133ef22fae0d737bd1b57352cf3f48a192c63 (diff)
Bugzilla 804 - Fix Suspend/Resume to mem
Patch for Bugzilla 804 - Fix Suspend/Resume to mem. It was found that SPI gets suspended before MMC, which, during it's own suspend, needs SPI to talk to the PMIC. This patch schedules SPI for late suspend and early resume. Applies to linux 2.6.22 kernel on MX platforms. http://www.bitshrine.org/gpp/linux-2.6.22-mx-Bugzilla-804-Fix-Suspend-Resume-to-mem.patch
-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 54ffc54c10f1..309b61f90ee0 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,
};
/*!