public inbox for linux-arm-kernel@lists.infradead.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 10:09:37 +0200	[thread overview]
Message-ID: <4BFB85C1.70204@vscht.cz> (raw)
In-Reply-To: <4BFB2638.2020402@vscht.cz>

Dne 25.5.2010 03:22, Pinkava J. napsal(a):
> 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).
Sorry for mess, this is idependend on previous patch and should be included.

(Or removed patch named:
ARM: n30: Add support for power on/off on Acer n30 / Acer n35 MMC card reader
)


> 
> 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;
>  	}
>  }

  reply	other threads:[~2010-05-25  8:09 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 ` [PATCH 2/2] ARM: Fix MMC power management on Acer n30 / n35 Pinkava J.
2010-05-25  8:09   ` Pinkava J. [this message]
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=4BFB85C1.70204@vscht.cz \
    --to=jiri.pinkava@vscht$(echo .)cz \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox