All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri.Pinkava@vscht.cz (Pinkava J.)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: Fix MMC power management on Acer n30 / n35
Date: Tue, 25 May 2010 03:22:00 +0200	[thread overview]
Message-ID: <4BFB2638.2020402@vscht.cz> (raw)
In-Reply-To: <4BFB2443.1040701@vscht.cz>

Exchange on and off state, MMC is working even if "powered off", but when comes
to write it causes random failures, most frequently zeroes first/all sector(s).

Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz>
---
 arch/arm/mach-s3c2410/mach-n30.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c
index 41f299d..6c3456c 100644
--- a/arch/arm/mach-s3c2410/mach-n30.c
+++ b/arch/arm/mach-s3c2410/mach-n30.c
@@ -357,11 +357,11 @@ static void n30_sdi_set_power(unsigned char power_mode,
unsigned short vdd)
 	switch (power_mode) {
 	case MMC_POWER_ON:
 	case MMC_POWER_UP:
-		gpio_set_value(S3C2410_GPG(4), 1);
+		gpio_set_value(S3C2410_GPG(4), 0);
 		break;
 	case MMC_POWER_OFF:
 	default:
-		gpio_set_value(S3C2410_GPG(4), 0);
+		gpio_set_value(S3C2410_GPG(4), 1);
 		break;
 	}
 }
-- 
1.7.1

  reply	other threads:[~2010-05-25  1:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25  1:13 [PATCH 1/2] ARM: SAMSUNG: MMC: Fix build error when both DMA and PIO mode selected Pinkava J.
2010-05-25  1:22 ` Pinkava J. [this message]
2010-05-25  8:09   ` [PATCH 2/2] ARM: Fix MMC power management on Acer n30 / n35 Pinkava J.
2010-05-25  4:38 ` [PATCH 1/2] ARM: SAMSUNG: MMC: Fix build error when both DMA and PIO mode selected Ben Dooks
2010-05-25  9:29 ` Sergei Shtylyov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BFB2638.2020402@vscht.cz \
    --to=jiri.pinkava@vscht.cz \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.