Re: [Question] What does SDHCI_QUIRK_BROKEN_CARD_DETECTION stands for?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/2/27 Chris Ball <cjb@xxxxxxxxxx>:
> 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;
>         }
>

I just want to confirm this code:)
Then when SDHCI_QUIRK_BROKEN_CARD_DETECTION is selected, read register
SDHCI_PRESENT_STATE is _not_ reliable.
I'm clear now.

Thanks
Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux