mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: "J.A. Magallón" <jamagallon@ono.com>
Cc: Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.27-git3: no SD card reader
Date: Sun, 23 Nov 2008 21:39:21 +0100	[thread overview]
Message-ID: <20081123213921.667ecb93@mjolnir.drzeus.cx> (raw)
In-Reply-To: <20081014232759.08f5d212@werewolf.home>

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

On Tue, 14 Oct 2008 23:27:59 +0200
"J.A. Magallón" <jamagallon@ono.com> wrote:

> 
> Err, sorry if this is stupid. I can see the card reader even if I don't
> load the jmb38x_ms.ko module,just sdhci_pci. I understand that it is needed only if
> I want to read memstick type cards. Or not ?

That is correct.

> I suppose you refer to 'settings for JMicron hardware in sdhci_pci module'.

Kind of. The JMicron controller supports 50 MHz SD cards, but it
restricted to 25 MHz in the name of higher compatibility.

> > Have you tested more than one card?
> > 
> 
> I have two (both unknown brands for me, but I write full names fwiw):
> - One "MBA Executive HiSpeed SD", 2Gb
> - One "takeMS SDHC card Class6",  8Gb
> 
> Both give about 10Mb/s on read with hdparm under 2.6.27.
> 

And both work fine in one of the slots, but not the other?

> > What machine is this? 
> 
> It's an Acer Aspire One. From what I have seen, there are two SD devices.
> Both are capable to read SDHC cards, I have switched cards and they work
> (or at the moment both are working as backwards-compatible in plain SD
> mode, if that even exists...).

The SD/SDHC distinction is all software, so the hardware doesn't really
care.

> 
> I call this half-working because I have to boot with a card inside a slot
> to have it detected. If i boot without the card-in, it even dissapears from
> lspci. This is just with the left SD inserted:
> 

No idea why this occurs. I'd guess some ACPI voodoo. You're going to
have to check with the PCI and/or ACPI guys to figure that part of the
mystery out.

> 
> And now with -git4:
> 
> ...
> mmc0: error -84 whilst initialising SD card
> ...
> mmc1: error -84 whilst initialising SD card
> 

Hmm... I thought you said that it was just the left reader that had
problems? Not both?

> 
> Mmm, looking at the logs I have seen that in 2.6.27 shpchp is loaded
> way before sdhci, and in -git4 it loads after it. Can this have
> any effect ?
> 

Perhaps, but I doubt it. If you rmmod sdhci-pci and modprobe it again
you should have the same behaviour as in .27.

> I solved this in modprobe.conf:
> 
> options sdhci debug_quirks=1
> 
> If I uderstood the source, that touches the controller clock on each reset for
> the operation to work.

Actually, I think you're just seeing the side effect that the
controller will revert back to the 25 MHz restriction.

Rgds
-- 
     -- 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: 197 bytes --]

  parent reply	other threads:[~2008-11-23 20:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14  0:54 J.A. Magallón
2008-10-14 15:45 ` Pierre Ossman
2008-10-14 21:27   ` J.A. Magallón
2008-10-14 22:25     ` J.A. Magallón
2008-10-24 22:34     ` Rafael J. Wysocki
2008-10-27  8:33       ` J.A. Magallón
2008-11-23 20:39     ` Pierre Ossman [this message]
2008-11-23 22:24       ` Alan Jenkins
2008-11-23 23:30         ` Matthew Garrett
2008-11-24  0:25           ` J.A. Magallón
2008-11-24  2:49             ` Matthew Garrett

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=20081123213921.667ecb93@mjolnir.drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=jamagallon@ono.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®