From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Dong Aisheng <b29396@freescale.com>,
Shawn Guo <shawn.guo@linaro.org>, Chris Ball <cjb@laptop.org>
Cc: linux-mmc@vger.kernel.org
Subject: UHS-1 cards with iMX6Q
Date: Fri, 7 Feb 2014 15:29:51 +0000 [thread overview]
Message-ID: <20140207152951.GB26684@n2100.arm.linux.org.uk> (raw)
Hi,
I have a Samsung 8GB UHS-1 card which I'm trying with iMX6Q, and it's
not behaving very well with the voltage switch. With MMC debugging
enabled - and augmented with additional debug for the ESDHC_VENDOR
register, I'm seeing this with 3.14-rc1:
[ 2.771270] mmc1: starting CMD11 arg 00000000 flags 00000015
[ 2.771575] sdhci [sdhci_irq()]: *** mmc1 got interrupt: 0x00000080
[ 2.771613] sdhci [sdhci_irq()]: *** mmc1 got interrupt: 0x00000001
[ 2.771632] mmc1: req done (CMD11): 0: 00000320 00000000 00000000 00000000
[ 2.772669] mmc1: clock 0Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[ 2.772679] mmc1: clearing ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
[ 2.772687] mmc1: ESDHC_VENDOR_SPEC_VSELECT is clear
[ 2.772695] mmc1: clearing ESDHC_VENDOR_SPEC_VSELECT
[ 2.772703] mmc1: clearing ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
[ 2.772713] sdhci-esdhc-imx 2194000.usdhc: change pinctrl state for uhs 0
[ 2.772719] mmc1: clearing ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
[ 2.772729] mmc1: ESDHC_VENDOR_SPEC_VSELECT is clear
[ 2.772735] mmc1: setting ESDHC_VENDOR_SPEC_VSELECT
[ 2.778276] mmc1: ESDHC_VENDOR_SPEC_VSELECT is sett
[ 2.786482] mmc1: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
[ 2.786502] sdhci-esdhc-imx 2194000.usdhc: desired SD clock: 400000, actual: 386718
[ 2.786511] mmc1: setting ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
[ 2.787515] mmc1: ESDHC_VENDOR_SPEC_VSELECT is sett
[ 2.787522] mmc1: setting ESDHC_VENDOR_SPEC_VSELECT
[ 2.787529] mmc1: clearing ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
[ 2.787536] sdhci-esdhc-imx 2194000.usdhc: change pinctrl state for uhs 0
[ 2.787548] sdhci-esdhc-imx 2194000.usdhc: desired SD clock: 400000, actual: 386718
[ 2.787554] mmc1: setting ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
[ 2.789560] mmc1: card failed to indicate switch to low voltage mode
This appears to correspond with the sequence:
CMD11 -> clock off -> set vselect -> clock on -> clock off ->
set pinctrl -> clock on -> test D[3:0]
which appears not to be the expected sequence - the expected sequence
should be:
CMD11 -> clock off -> set vselect -> clock on -> test D[3:0]
maybe with the setting of the IOMUX settings somewhere in there -
probably at the point where the clock is off - the additional clock
off/clock on step looks to me incorrect.
In any case, I've also augmented the other failure paths in
mmc_set_signal_voltage(), and it's always this one (the last step)
which fails:
if (host->ops->card_busy && host->ops->card_busy(host)) {
pr_debug("%s: card failed to indicate switch to low voltage mode\n",
mmc_hostname(host));
err = -EAGAIN;
}
Any ideas?
Thanks.
--
FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation
in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad.
Estimate before purchase was "up to 13.2Mbit".
next reply other threads:[~2014-02-07 15:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 15:29 Russell King - ARM Linux [this message]
2014-02-07 15:59 ` UHS-1 cards with iMX6Q Shawn Guo
2014-02-07 16:16 ` Russell King - ARM Linux
2014-02-08 13:55 ` Dong Aisheng
2014-02-09 15:14 ` Russell King - ARM Linux
2014-02-10 3:31 ` Dong Aisheng
2014-02-10 10:33 ` Russell King - ARM Linux
2014-02-10 12:11 ` Dong Aisheng
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=20140207152951.GB26684@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=b29396@freescale.com \
--cc=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=shawn.guo@linaro.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