public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: andrzej zaborowski <balrogg@gmail.com>
Cc: Linux OMAP <linux-omap-open-source@linux.omap.com>
Subject: Re: SD response type 6 vs. 1
Date: Mon, 04 Jun 2007 20:15:40 +0200	[thread overview]
Message-ID: <466456CC.1070408@drzeus.cx> (raw)
In-Reply-To: <fb249edb0706040841m222daab2xc7a4833e7b1c96cb@mail.gmail.com>

andrzej zaborowski wrote:
> Hi,
>  Linux has the same values for MMC_RSP_R1 and MMC_RSP_R6 thus making
> the two response formats indistinguishable for mmc/sd hosts. Hardware
> like my OMAP310 needs to know exactly whether to expect an R1 or R6
> format, otherwise CMD3 fails.
>
> Sure it would be nice if it didn't care, but nevertheless, it's not a
> hardware bug - the two formats are specified separately in SD specs
> because they *are* different. So the hardware has full right to know
> the right response type. Rather it's a hack to rely on R1 and R6
> having the same size, like Linux does now. It would also be a hack to
> allow the CMD3 to fail with CRC error and ignore the error, like
> omap.c did before, because it makes an assumption that's not in the
> OMAP specs.

If you're referring to CERR, then I suggest you reread the specs. They
even explicitly say its okay to ignore it.

Anyway, I'm not going into this discussion again without a valid
argument as to why the suggest path won't work.

>
> The following is an ugly fix. It's ugly because host code should be
> agnostic to opcodes, as mentioned by Pierre Ossman.
> I believe this was already submitted by Carlos Aguiar and rejected by
> Pierre, which resulted in leaving the driver broken on some boards.

This just hides the fact that the host parses the data more than we want
and expect it to do.

>
> A more correct and more intrusive fix would look like this:

Afraid not. The response type specifies format, not semantical contents.

The correct fix has already been discussed, but I have seen zero
attempts at implementing it:

http://linux.omap.com/pipermail/linux-omap-open-source/2007-April/009500.html

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

  reply	other threads:[~2007-06-04 18:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04 15:41 SD response type 6 vs. 1 andrzej zaborowski
2007-06-04 18:15 ` Pierre Ossman [this message]
2007-06-04 18:55   ` andrzej zaborowski
2007-06-04 18:56   ` Carlos Aguiar
2007-06-06 18:09     ` Pierre Ossman
     [not found]       ` <25c21ceb0706061415k5e8ce510t3a1c999bcbb5102c@mail.gmail.com>
     [not found]         ` <4667C0B6.6090408@drzeus.cx>
2007-06-08 13:55           ` Fwd: " Ragner Magalhães

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=466456CC.1070408@drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=balrogg@gmail.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /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