From: Pierre Ossman <pierre@ossman.eu>
To: James Hogan <james.hogan@imgtec.com>
Cc: linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: mmc_test Correct xfer_size at write
Date: Tue, 28 Jun 2011 18:50:28 +0200 [thread overview]
Message-ID: <20110628185028.6af91b87@mjolnir.ossman.eu> (raw)
In-Reply-To: <4E09AEE5.4050505@imgtec.com>
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
On Tue, 28 Jun 2011 11:37:25 +0100
James Hogan <james.hogan@imgtec.com> wrote:
> Hi,
>
> I'm trying to figure out why the broken write transfer tests in mmc_test
> require the result to be -ETIMEDOUT, so that I can make dw_mmc pass
> these tests. Perhaps somebody could explain.
>
> I can understand for reads, that the controller is waiting for the start
> bit on the data lines and so it can timeout after a while if it doesn't
> see any. However for writes (as far as I can glean from the physical
> layer spec and a logic analyser) the data response token which is
> normally sent by the card in response to a write transfer is clocked out
> immediately after the data so is either there or it isn't.
>
> Have I misunderstood it or is -ETIMEDOUT just the error that is required
> by convention when the data response token is not detected?
>
It's more or less by convention. ETIMEDOUT is the closest thing we have
to "we expected a response from the card but got bupkis". You can find
some informal definitions here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/mmc/core.h;h=b6718e549a510780e0f8c9a3be17e64753d6c2f5;hb=HEAD#l81
Rgds
--
-- Pierre Ossman
WARNING: This correspondence is being monitored by FRA, a
Swedish intelligence agency. Make sure your server uses
encryption for SMTP traffic and consider using PGP for
end-to-end encryption.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 230 bytes --]
next prev parent reply other threads:[~2011-06-28 16:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 10:37 mmc_test Correct xfer_size at write James Hogan
2011-06-28 16:50 ` Pierre Ossman [this message]
2011-06-29 8:06 ` James Hogan
-- strict thread matches above, loose matches on Subject: below --
2011-06-28 10:35 James Hogan
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=20110628185028.6af91b87@mjolnir.ossman.eu \
--to=pierre@ossman.eu \
--cc=james.hogan@imgtec.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