1. 08 3月, 2009 1 次提交
  2. 01 1月, 2009 3 次提交
  3. 09 11月, 2008 2 次提交
  4. 12 10月, 2008 4 次提交
  5. 02 8月, 2008 1 次提交
  6. 27 7月, 2008 2 次提交
    • H
      mmc: Add per-card debugfs support · f4b7f927
      Haavard Skinnemoen 提交于
      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: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      f4b7f927
    • H
      mmc: Export internal host state through debugfs · 6edd8ee6
      Haavard Skinnemoen 提交于
      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: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      6edd8ee6
  7. 15 7月, 2008 8 次提交
  8. 19 4月, 2008 5 次提交
  9. 23 3月, 2008 1 次提交
  10. 02 11月, 2007 1 次提交
  11. 27 10月, 2007 2 次提交
  12. 18 10月, 2007 1 次提交
  13. 14 10月, 2007 1 次提交
  14. 13 10月, 2007 2 次提交
  15. 06 10月, 2007 2 次提交
  16. 27 9月, 2007 1 次提交
    • P
      sdio: adaptive interrupt polling · 6f4285d1
      Pierre Ossman 提交于
      The interrupt polling frequency is a compromise between power usage and
      interrupt latency. Unfortunately, it affects throughput rather severely
      for devices which require an interrupt for every chunk of data.
      
      By making the polling frequency adaptive, we get better throughput with
      those devices without sacficing too much power. Polling will quickly
      increase when there is an actual interrupt, and slowly fall back to the
      idle frequency when the interrupts stop coming.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      6f4285d1
  17. 24 9月, 2007 3 次提交
    • P
      mmc: add led trigger · af8350c7
      Pierre Ossman 提交于
      Add a led trigger for each host controller that indicates if there
      is a request active on the controller.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      af8350c7
    • D
      MMC core learns about SPI · af517150
      David Brownell 提交于
      Teach the MMC/SD/SDIO core about using SPI mode.
      
       - Use mmc_host_is_spi() so enumeration works through SPI signaling
         and protocols, not just the native versions.
      
       - Provide the SPI response type flags with each request issued,
         including requests from the new lock/unlock code.
      
       - Understand that cmd->resp[0] and mmc_get_status() results for SPI
         return different values than for "native" MMC/SD protocol; this
         affects resetting, checking card lock status, and some others.
      
       - Understand that some commands act a bit differently ... notably:
           * OP_COND command doesn't return the OCR
           * APP_CMD status doesn't have an R1_APP_CMD analogue
      
      Those changes required some new and updated primitives:
      
       - Provide utilities to access two SPI-only requests, and one
         request that wasn't previously needed:
           * mmc_spi_read_ocr() ... SPI only
           * mmc_spi_set_crc() ... SPI only (override by module parm)
           * mmc_send_cid() ... for use without broadcast mode
      
       - Updated internal routines:
           * Previous mmc_send_csd() modified into mmc_send_cxd_native();
             it uses native "R2" responses, which include 16 bytes of data.
           * Previous mmc_send_ext_csd() becomes new mmc_send_cxd_data()
             helper for command-and-data access
           * Bugfix to that mmc_send_cxd_data() code:  dma-to-stack is
             unsafe/nonportable, so kmalloc a bounce buffer instead.
      
       - Modified mmc_send_ext_csd() now uses mmc_send_cxd_data() helper
      
       - Modified mmc_send_csd(), and new mmc_spi_send_cid(), routines use
         those helper routines based on whether they're native or SPI
      
      The newest categories of cards supported by the MMC stack aren't expected
      to work yet with SPI:  MMC or SD cards with over 4GB data, and SDIO.
      All those cards support SPI mode, so eventually they should work too.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      af517150
    • P
      sdio: store vendor strings · 759bdc7a
      Pierre Ossman 提交于
      Store vendor strings found in CISTPL_VERS_1 so that function drivers
      can access them.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      759bdc7a