From aea2c59fab46904c36b9d7af1b777f9faeb290f3 Mon Sep 17 00:00:00 2001 From: Quinn Jensen Date: Wed, 24 Oct 2007 21:27:21 -0600 Subject: 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 --- drivers/spi/mxc_spi.c | 4 ++-- 1 file 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, }; /*! -- cgit v1.2.3