mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: "José Marí­a Fernández González" <josemariafg@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] mmc: Some microSD cards are not recognized by PCIxx12 SDA controller
Date: Tue, 24 Mar 2009 21:17:48 +0100	[thread overview]
Message-ID: <20090324211748.30cd7429@mjolnir.ossman.eu> (raw)
In-Reply-To: <49B5C091.3090303@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

On Tue, 10 Mar 2009 02:21:21 +0100
José Marí­a Fernández González <josemariafg@gmail.com> wrote:

> 
> I don't know whether this patch can break something in the behavior of other
> SD controllers, but at least it works for my laptop.
> 

Should be fairly safe, it just slows things down.

> diff -Nrpu linux-2.6.28.5/drivers/mmc/core/core.c.orig linux-2.6.28.5/drivers/mmc/core/core.c
> --- linux-2.6.28.5/drivers/mmc/core/core.c.orig	2009-03-10 01:30:19.000000000 +0100
> +++ linux-2.6.28.5/drivers/mmc/core/core.c	2009-03-10 01:29:44.000000000 +0100
> @@ -514,7 +514,7 @@ static void mmc_power_up(struct mmc_host
>  	 * This delay should be sufficient to allow the power supply
>  	 * to reach the minimum voltage.
>  	 */
> -	mmc_delay(2);
> +	mmc_delay(10);
>  

A delay of 10 is just enough to trigger a sleep on most kernels
(HZ=100). Have you determined the lower bound of these two values?

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  rdesktop, core developer          http://www.rdesktop.org

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-03-24 20:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10  1:21 José Marí­a Fernández González
2009-03-24 20:17 ` Pierre Ossman [this message]
2009-03-25  8:00   ` José Marí­a Fernández González
2009-03-25 16:17     ` Pierre Ossman
2009-03-26 16:37       ` José Marí­a Fernández González
2009-04-05 18:33         ` Pierre Ossman
2009-04-06 23:30           ` José Marí­a Fernández González
2009-04-10 21:35             ` Pierre Ossman

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=20090324211748.30cd7429@mjolnir.ossman.eu \
    --to=drzeus-list@drzeus.cx \
    --cc=akpm@linux-foundation.org \
    --cc=josemariafg@gmail.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®