From: Chris Ball <cjb@laptop.org>
To: Kevin Liu <keyuan.liu@gmail.com>
Cc: linux-mmc@vger.kernel.org
Subject: Re: [Question] What does SDHCI_QUIRK_BROKEN_CARD_DETECTION stands for?
Date: Wed, 27 Feb 2013 09:36:00 -0500 [thread overview]
Message-ID: <87ip5d7rjj.fsf@octavius.laptop.org> (raw)
In-Reply-To: <CADz5_gKvGqSFsTiMVMG2jcsXmfESydGfTSzN=sG-WAGkpP6DYw@mail.gmail.com> (Kevin Liu's message of "Wed, 27 Feb 2013 22:33:15 +0800")
Hi,
On Wed, Feb 27 2013, Kevin Liu wrote:
> Thanks for quick answer!
> Then if broken-cd/SDHCI_QUIRK_BROKEN_CARD_DETECTION is selected, can I
> use host controller Present State Register[18] (offset 0x24) to know
> card status (present or not)?
sdhci.c:
present = mmc_gpio_get_cd(host->mmc);
if (present < 0) {
/* If polling, assume that the card is always present. */
if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
present = 1;
else
present = sdhci_readl(host, SDHCI_PRESENT_STATE) &
SDHCI_CARD_PRESENT;
}
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2013-02-27 14:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADz5_gKreSB9BvTgBBcjjOOEDMRc2q1s-9VNHfb_+x+9gdADLw@mail.gmail.com>
[not found] ` <87r4k17toq.fsf@octavius.laptop.org>
2013-02-27 14:33 ` [Question] What does SDHCI_QUIRK_BROKEN_CARD_DETECTION stands for? Kevin Liu
2013-02-27 14:36 ` Chris Ball [this message]
2013-02-27 14:58 ` Kevin Liu
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=87ip5d7rjj.fsf@octavius.laptop.org \
--to=cjb@laptop.org \
--cc=keyuan.liu@gmail.com \
--cc=linux-mmc@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