All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: asic3: Fix SD card resume after suspend
@ 2011-08-09 16:27 Paul Parsons
  2011-08-22 10:05 ` Samuel Ortiz
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Parsons @ 2011-08-09 16:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: philipp.zabel, sameo, mad_soft, koen

The mfd/asic3 driver did not define the suspend/resume handlers for the mmc cell
driver. Consequently the mmc driver did not resume properly after returning from
suspend, making sd cards unusable and preventing suspend from being entered a
second time. This patch adds the suspend/resume handlers, fixing the problem.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
---

Thanks to Dmitry Artamonow for this fix.

diff -uprN clean-3.0.1/drivers/mfd/asic3.c linux-3.0.1/drivers/mfd/asic3.c
--- clean-3.0.1/drivers/mfd/asic3.c	2011-08-05 05:59:21.000000000 +0100
+++ linux-3.0.1/drivers/mfd/asic3.c	2011-08-07 23:34:38.036672007 +0100
@@ -779,6 +779,8 @@ static struct mfd_cell asic3_cell_mmc =
 	.name          = "tmio-mmc",
 	.enable        = asic3_mmc_enable,
 	.disable       = asic3_mmc_disable,
+	.suspend       = asic3_mmc_disable,
+	.resume        = asic3_mmc_enable,
 	.platform_data = &asic3_mmc_data,
 	.pdata_size    = sizeof(asic3_mmc_data),
 	.num_resources = ARRAY_SIZE(asic3_mmc_resources),


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: asic3: Fix SD card resume after suspend
  2011-08-09 16:27 [PATCH] mfd: asic3: Fix SD card resume after suspend Paul Parsons
@ 2011-08-22 10:05 ` Samuel Ortiz
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2011-08-22 10:05 UTC (permalink / raw)
  To: Paul Parsons; +Cc: linux-kernel, philipp.zabel, mad_soft, koen

Hi Paul,

On Tue, Aug 09, 2011 at 04:27:24PM +0000, Paul Parsons wrote:
> The mfd/asic3 driver did not define the suspend/resume handlers for the mmc cell
> driver. Consequently the mmc driver did not resume properly after returning from
> suspend, making sd cards unusable and preventing suspend from being entered a
> second time. This patch adds the suspend/resume handlers, fixing the problem.
> 
> Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Thanks, all 4 patches applied.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-22 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-09 16:27 [PATCH] mfd: asic3: Fix SD card resume after suspend Paul Parsons
2011-08-22 10:05 ` Samuel Ortiz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.