public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Ian Molton <spyro@f2s.com>
Cc: Russell King <rmk+lkml@arm.linux.org.uk>,
	Richard Purdie <rpurdie@rpsys.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: MMC Driver RFC
Date: Sun, 16 Jan 2005 13:22:37 +0100	[thread overview]
Message-ID: <41EA5C8D.8070407@drzeus.cx> (raw)
In-Reply-To: <41E7DD5E.5070901@f2s.com>

Ian Molton wrote:

>
> I've been getting errors replying to you but had no alternative 
> address to use. perhaps you could mail me from another account ?
>
Afraid everything gets routed to the same account in the end anyway. I 
checked the logs and the problem is that your mail server has a HELO 
that differs from its IP (outmail.freedom2surf.net vs. 194.106.33.237). 
Reverse is ok, but forward points to 194.106.56.14.

>> * Moved SD-specific commands to a separate section in the header so 
>> they are more easily distinguished.
>
>
> I had been meaning to move all the c code referencing SD to a seperate 
> sd.c file such that it could be compiled optionally on top of MMC. at 
> the time it wasnt mature enough to be worth it, but that may be worth 
> revisiting now.
>
I've had the same idea. But I think it will be difficult since we need 
som funky logic during init. Perhaps a model where each mode 
(MMC/SD/SDIO) each gets their turn trying to find something on the bus. 
But this would require a rather large rewrite of the MMC layer. We would 
need to separate MMC logic from the driver interface. And mmc_block and 
sd_block would more or less be the same. Considering how much is similar 
(and most people want SD support anyhow), I'm not sure that we have much 
to gain from separating them.

>> * The mode (SD/MMC) of the host is stored. Since MMC uses a bus 
>> topology and SD uses a star one it is useful to be able to see which 
>> mode the controller is in.
>
>
> Is this needed? presumably any controller that implements MMC/SD slots 
> can only have one card/slot anyhow.
>
> Mind you, I have plans to look at SDIO, so that may alter things...
>
I need it to determine if the code should send an RCA or ask for one, 
and to determine if it should try and read the SCR. Your solution used 
an extra parameter but I thought a mode flag would be better since we 
might need to know mode later on (after init.).

>
> The toshiba controller appears to want to be told when an ACMD is 
> issued, compared to a normal CMD.

No hints in the spec about why? Seems very strange since there's no 
change in what goes over the wire.

Rgds
Pierre


  reply	other threads:[~2005-01-16 12:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-12 21:10 MMC Driver RFC Richard Purdie
2005-01-12 21:43 ` Russell King
2005-01-12 22:07   ` Richard Purdie
2005-01-12 22:17     ` Russell King
2005-01-12 23:23       ` Ian Molton
2005-01-12 23:58         ` Richard Purdie
2005-01-14 11:37         ` Pierre Ossman
2005-01-14 14:55           ` Ian Molton
2005-01-16 12:22             ` Pierre Ossman [this message]
2005-01-16 13:19               ` Ian Molton
2005-01-16 19:43                 ` Pierre Ossman
2005-01-16 23:17                   ` Richard Purdie
2005-01-16 22:33                     ` Alan Cox
2005-01-17  6:07                     ` Pierre Ossman
2005-01-17  9:53                       ` Richard Purdie
2005-01-17 11:59                         ` 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=41EA5C8D.8070407@drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@arm.linux.org.uk \
    --cc=rpurdie@rpsys.net \
    --cc=spyro@f2s.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