Re: MMC Driver RFC

From: Pierre Ossman (drzeus-list_at_drzeus.cx)
Date: 01/16/05

  • Next message: John covici: "Re: 2.6.10 dies when X tries to initialize PCI radeon 9200 SE"
    Date:	Sun, 16 Jan 2005 13:22:37 +0100
    To: Ian Molton <spyro@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

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: John covici: "Re: 2.6.10 dies when X tries to initialize PCI radeon 9200 SE"

    Relevant Pages

    • Re: Factories and lazy objects
      ... It seems to be a controller object that is sequencing ... responsibilities at a different level of abstraction than individual ... object implementations. ... If one gets Account from MainFrameConnection, ...
      (comp.object)
    • Re: Performance issue, MS software
      ... Marks a disabled account; Marks a locked account Lexmark 5200 Series ... Microsoft Office Document Image Writer Driver on Microsoft Document ... Standard floppy disk controller ... Office OneNote MUI (English) 2007 ...
      (microsoft.public.windows.vista.performance_maintenance)
    • Re: [PATCH] mmc: make sdhci work with ricoh mmc controller
      ... Would it make sense to have the hard-coded caps reflect the full ... although the caps on main controller are broken ... We ought to be able to set the MMC high-speed flag for this ... both are tested for a card, and this is done asynchronously by ...
      (Linux-Kernel)
    • Re: [PATCH] Port ricoh_mmc from driver to pci quirk.
      ... Port ricoh_mmc from driver to pci quirk. ... Pierre specifically didn't want a pci quirk. ... It happens that they implement SD and MMC ... * and directs them to the MMC controller - so the SDHCI driver ...
      (Linux-Kernel)
    • [PATCH v2] port ricoh_mmc to be pci quirk
      ... This patch solves nasty problem original driver has. ... then, mmc cards can be read using standard SDHCI controller, ... However, the act of disablement, makes other pci functions that belong to ... this controller shift up one level, thus pci core has now wrong idea ...
      (Linux-Kernel)