From: "Wappler Marcel" <Marcel.Wappler@bridgeco.net>
To: <linux-kernel@vger.kernel.org>
Cc: <drzeus-mmc@drzeus.cx>
Subject: MMC: Card detection through pin CD/DAT3 issue
Date: Tue, 18 Mar 2008 11:59:25 +0100 [thread overview]
Message-ID: <83116F0A4FF67A4F97BA0B6E408C48E301DAB4AA@zuerich.BC-Int.NET> (raw)
Hi Pierre, hi MMC developers,
I am at porting the generic PCI controller driver mmc/host/sdhci.c to a special non PCI direct memory mapped host. The hardware
vendor decided to implement the card detection not through the mechanical card present switch but through detecting the card
internal pull up at pin 1 (CD/DAT3).
With this detection scheme I have some dificulties togehter with the internal working of the current MMC stack:
The controller cannot detect a newly inserted card if the card power is switched of. This is due to the fact that the SD card
applies the internal card detection pull up after it powered up. If there is no power -> no powering up -> no pull up. (besides the
fact that a pull up needs power to for doing its work :-) )
My questions are:
1. knows anyone a host controller which uses the same card detection mechanism?
2. How could the driver manage the problem that the MMC stack switches off the card power if removed and therefor no state change on
line CD/DAT3 occurs at re-insertion of that card?
3. In a short look through some MMC card specs I did not find any description of some card detection mechanism. So I suppose the
mechanical switch is the only possible solution to detect a newly inserted card. Am I right or is there nevertheless a chance to
detect a inserted MMC together with this host?
Please CC me personaly and thanks a lot,
Marcel
--
Marcel Wappler
Bridgeco AG
CH-8600 Dübendorf
Switzerland
next reply other threads:[~2008-03-18 10:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 10:59 Wappler Marcel [this message]
2008-03-18 11:20 ` Pierre Ossman
2008-03-18 12:24 ` Wappler Marcel
2008-03-18 12:47 ` Pierre Ossman
[not found] <a8HRS-1KI-17@gated-at.bofh.it>
[not found] ` <a8Ibj-2w0-17@gated-at.bofh.it>
[not found] ` <a8J7c-4QO-1@gated-at.bofh.it>
2008-03-18 23:08 ` Bodo Eggert
2008-03-19 8:41 ` Wappler Marcel
2008-03-20 7:27 ` Bodo Eggert
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=83116F0A4FF67A4F97BA0B6E408C48E301DAB4AA@zuerich.BC-Int.NET \
--to=marcel.wappler@bridgeco.net \
--cc=drzeus-mmc@drzeus.cx \
--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®