mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* MMC: Card detection through pin CD/DAT3 issue
@ 2008-03-18 10:59 Wappler Marcel
  2008-03-18 11:20 ` Pierre Ossman
  0 siblings, 1 reply; 7+ messages in thread
From: Wappler Marcel @ 2008-03-18 10:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: drzeus-mmc

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

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <a8HRS-1KI-17@gated-at.bofh.it>]

end of thread, other threads:[~2008-03-20  7:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18 10:59 MMC: Card detection through pin CD/DAT3 issue Wappler Marcel
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

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®