Skip to content
Snippets Groups Projects
  1. Jun 13, 2009
    • Sascha Hauer's avatar
      MMC core: limit minimum initialization frequency to 400kHz · 8dfd0374
      Sascha Hauer authored
      
      Some controllers allow a much lower frequency than 400kHz.
      Keep the minimum frequency within sensible limits.
      
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      8dfd0374
    • Jorg Schummer's avatar
      mmc: mmc_rescan detects card change in one run · 94d89efb
      Jorg Schummer authored
      
      With this patch, mmc_rescan can detect the removal of an mmc card and
      the insertion of (possibly another) card in the same run. This means
      that a card change can be detected without having to call
      mmc_detect_change multiple times.
      
      This change generalises the core such that it can be easily used by
      hosts which provide a mechanism to detect only the presence of a card
      reader cover, which has to be taken off in order to insert a card. Other
      hosts ("card detect" or "MMC_CAP_NEEDS_POLL") each receive an event when
      a card is removed and when a card is inserted, so it is sufficient for
      them if mmc_rescan handles only one event at a time. "Cover detect"
      hosts, however, only receive events about the cover status. This means
      that between 2 subsequent events, both a card removal and a card
      insertion can occur. In this case, the pre-patch version of mmc_rescan
      would only detect the removal of the previous card but not the insertion
      of the new card.
      
      Signed-off-by: default avatarJorg Schummer <ext-jorg.2.schummer@nokia.com>
      Signed-off-by: default avatarPierre Ossman <pierre@ossman.eu>
      94d89efb
  2. May 03, 2009
  3. Apr 08, 2009
  4. Mar 31, 2009
  5. Mar 24, 2009
  6. Mar 08, 2009
  7. Dec 31, 2008
  8. Nov 08, 2008
  9. Oct 12, 2008
  10. Aug 01, 2008
  11. Jul 26, 2008
    • Haavard Skinnemoen's avatar
      mmc: Add per-card debugfs support · f4b7f927
      Haavard Skinnemoen authored
      
      For each card successfully added to the bus, create a subdirectory under
      the host's debugfs root with information about the card.
      
      At the moment, only a single file is added to the card directory for
      all cards: "state". It reflects the "state" field in struct mmc_card,
      indicating whether the card is present, readonly, etc.
      
      For MMC and SD cards (not SDIO), another file is added: "status".
      Reading this file will ask the card about its current status and
      return it. This can be useful if the card just refuses to respond to
      any commands, which might indicate that the card state is not what the
      MMC core thinks it is (due to a missing stop command, for example.)
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      f4b7f927
    • Haavard Skinnemoen's avatar
      mmc: Export internal host state through debugfs · 6edd8ee6
      Haavard Skinnemoen authored
      
      When CONFIG_DEBUG_FS is set, create a few files under /sys/kernel/debug
      containing information about an mmc host's internal state. Currently,
      just a single file is created, "ios", which contains information about
      the current operating parameters for the bus (clock speed, bus width,
      etc.)
      
      Host drivers can add additional files and directories under the host's
      root directory by passing the debugfs_root field in struct mmc_host as
      the 'parent' parameter to debugfs_create_*.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      6edd8ee6
  12. Jul 15, 2008
  13. Apr 18, 2008
Loading