public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Jordan Crouse <jordan.crouse@amd.com>
Cc: linux-kernel@vger.kernel.org, ralf.baechle@linux-mips.org,
	ppopov@embeddedalley.com
Subject: Re: Au1xxx MMC driver
Date: Mon, 31 Oct 2005 17:59:36 +0100	[thread overview]
Message-ID: <43664D78.8050804@drzeus.cx> (raw)
In-Reply-To: <20051031164021.GG20777@cosmic.amd.com>

Jordan Crouse wrote:
>
>> I'm also concerned about the ammount of protocol awareness in this
>> driver. Is there a spec available for this hardware? Perhaps the MMC
>> layer can export more information so that we can avoid switches on
>> specific MMC commands?
>>     
>
> Spec is here: 
>
> http://tinyurl.com/dslkv  (Horribly long URL and registration required,
> unfortunately).
>   

Very nice. First manufacturer I've seen that gives out a spec. without 
requiring your soul. :)

> In this case, the controller needs to be specifically told what command
> and response type it should expect, thus the opcode switch.
> I don't really think this is an  unreasonable demand to be put on the 
> hardware driver, and its certainly way more HW specific then the upper 
> layers need to be.
>
>   

I've read the spec. and the command response type seems to be the only 
thing required. So protocol awareness is acceptable there provided there 
is a failure case for any unknown type.

For the command type field the driver should check the number of blocks 
and direction, not the command code. SDIO seems more difficult. But 
since we do not support that atm we still have the option of making sure 
any future implementations consider the needs of this hardware. I doubt 
there will be a need for checking command codes here either.

In summary, I see no need for protocol awareness other than response types.

Rgds
Pierre


  reply	other threads:[~2005-10-31 16:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31 16:40 Au1xxx MMC driver Jordan Crouse
2005-10-31 16:59 ` Pierre Ossman [this message]
2005-11-01 10:05 ` Pierre Ossman

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=43664D78.8050804@drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=jordan.crouse@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ppopov@embeddedalley.com \
    --cc=ralf.baechle@linux-mips.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