1. 07 12月, 2012 1 次提交
    • K
      mmc: sdio: Use multiple scatter/gather list · 968a64ea
      Kyoungil Kim 提交于
      Before this patch, we always used only single sg entry for SDIO transfer.
      This patch switches to using multiple sg entries. In the case of dwmci,
      it supports only up to 4KB size per single sg entry. So if we want to
      transfer more than 4KB, we should send more than 1 command.
      
      When we tested before applying this patch, it took around 335 us for
      5K(5120) bytes transfer with dwmci controller. After applying this patch,
      it takes 242 us for 5K bytes. So this patch makes around 38% performance
      improvement for 5K bytes transfer. If the transfer size is bigger, then
      the performance improvement ratio will be increased.
      Signed-off-by: NKyoungil Kim <ki0351.kim@samsung.com>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      968a64ea
  2. 12 1月, 2012 1 次提交
    • S
      mmc: sdio: Fix to support any block size optimally · 052d81da
      Stefan Nilsson XK 提交于
      This patch allows any block size to be set on the SDIO link,
      and still have an arbitrary sized packet (adjusted in size by
      using sdio_align_size) transferred in an optimal way
      (preferably one transfer).
      
      Previously if the block size was larger than the default of
      512 bytes and the transfer size was exactly one block size
      (possibly thanks to using sdio_align_size to get an optimal
      transfer size), it was sent as a number of byte transfers instead
      of one block transfer. Also if the number of blocks was
      (max_blocks * N) + 1, the tranfer would be conducted with a number
      of blocks and finished off with a number of byte transfers.
      
      When doing this change it was also possible to break out the quirk
      for broken byte mode in a much cleaner way, and collect the logic of
      when to do byte or block transfer in one function instead of two.
      Signed-off-by: NStefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@stericsson.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      052d81da
  3. 01 11月, 2011 1 次提交
  4. 28 5月, 2010 1 次提交
  5. 07 3月, 2010 2 次提交
    • N
      sdio: introduce API for special power management features · da68c4eb
      Nicolas Pitre 提交于
      This patch series provides the core changes needed to allow SDIO cards to
      remain powered and active while the host system is suspended, and let them
      wake up the host system when needed.  This is used to implement
      wake-on-lan with SDIO wireless cards at the moment.  Patches to add that
      support to the libertas driver will be posted separately.
      
      This patch:
      
      Some SDIO cards have the ability to keep on running autonomously when the
      host system is suspended, and wake it up when needed.  This however
      requires that the host controller preserve power to the card, and
      configure itself appropriately for wake-up.
      
      There is however 4 layers of abstractions involved: the host controller
      driver, the MMC core code, the SDIO card management code, and the actual
      SDIO function driver.  To make things simple and manageable, host drivers
      must advertise their PM capabilities with a feature bitmask, then function
      drivers can query and set those features from their suspend method.  Then
      each layer in the suspend call chain is expected to act upon those bits
      accordingly.
      
      [akpm@linux-foundation.org: fix typo in comment]
      Signed-off-by: NNicolas Pitre <nico@marvell.com>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      da68c4eb
    • B
      sdio: add quirk to clamp byte mode transfer · 3fb7fb4a
      Bing Zhao 提交于
      Some SDIO cards expect byte transfers not to exceed the configured block
      transfer size.  Add a quirk to that effect.
      
      Patches to make use of this quirk will be sent separately.
      Signed-off-by: NBing Zhao <bzhao@marvell.com>
      Signed-off-by: NNicolas Pitre <nico@marvell.com>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3fb7fb4a
  6. 23 9月, 2009 1 次提交
  7. 15 7月, 2008 5 次提交
  8. 24 9月, 2007 6 次提交