1. 30 Jun, 2009 1 commit
    • David Brownell's avatar
      spi: add spi_master flag word · 70d6027f
      David Brownell authored
      
      
      Add a new spi_master.flags word listing constraints relevant to that
      controller.  Define the first constraint bit: a half duplex restriction.
      Include that constraint in the OMAP1 MicroWire controller driver.
      
      Have the mmc_spi host be the first customer of this flag.  Its coding
      relies heavily on full duplex transfers, so it must fail when the
      underlying controller driver won't perform them.
      
      (The spi_write_then_read routine could use it too: use the
      temporarily-withdrawn full-duplex speedup unless this flag is set, in
      which case the existing code applies.  Similarly, any spi_master
      implementing only SPI_3WIRE should set the flag.)
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      70d6027f
  2. 13 Jun, 2009 2 commits
  3. 08 Apr, 2009 2 commits
  4. 24 Mar, 2009 3 commits
  5. 31 Dec, 2008 1 commit
  6. 08 Nov, 2008 1 commit
  7. 12 Oct, 2008 1 commit
  8. 23 Jul, 2008 1 commit
  9. 15 Jul, 2008 3 commits
    • Pierre Ossman's avatar
      mmc: remove multiwrite capability · 23af6039
      Pierre Ossman authored
      
      
      Relax requirements on host controllers and only require that they do not
      report a transfer count than is larger than the actual one (i.e. a lower
      value is okay). This is how many other parts of the kernel behaves so
      upper layers should already be prepared to handle that scenario. This
      gives us a performance boost on MMC cards.
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      23af6039
    • Anton Vorontsov's avatar
      mmc: change .get_ro() callback semantics · 08f80bb5
      Anton Vorontsov authored
      
      
      Now get_ro() callback must return 0/1 values for its logical states, and
      negative errno values in case of error. If particular host instance doesn't
      support RO/WP switch, it should return -ENOSYS.
      
      This patch changes some hosts in two ways:
      
      1. Now functions should be smart to not return negative values in
         "RO asserted" case (particularly gpio_ calls could return negative
         values for the outermost GPIOs).
      
         Also, board code usually passes get_ro() callbacks that directly return
         gpioreg & bit result, so at91_mci, imxmmc, pxamci and mmc_spi's get_ro()
         handlers need take special care when returning platform's values to the
         mmc core.
      
      2. In case of host instance didn't implement get_ro() callback, it should
         really return -ENOSYS and let the mmc core decide what to do about it
         (mmc core thinks the same way as the hosts, so it isn't functional
         change).
      Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      08f80bb5
    • Anton Vorontsov's avatar
      mmc_spi: add support for card-detection polling · 619ef4b4
      Anton Vorontsov authored
      
      
      This patch adds new platform data variable "caps", so platforms
      could pass theirs capabilities into MMC core (for example, platforms
      without interrupt on the CD line will most probably want to pass
      MMC_CAP_NEEDS_POLL).
      
      New platform get_cd() callback provided to optimize polling.
      Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      619ef4b4
  10. 29 Apr, 2008 1 commit
  11. 05 Dec, 2007 1 commit
  12. 27 Oct, 2007 1 commit
  13. 22 Oct, 2007 1 commit
  14. 16 Oct, 2007 2 commits
  15. 14 Oct, 2007 1 commit
  16. 23 Sep, 2007 1 commit
    • David Brownell's avatar
      mmc_spi host driver · 15a0580c
      David Brownell authored
      
      
      This is the latest version of the MMC-over-SPI support.  It works
      on 2.6.23-rc2 plus git-mmc (from rc1-mm2), along with the preceding
      patches which teach the rest of the MMC stack about SPI.
      
      The main issue of note is that sometimes cards need to be power cycled
      to recover after certain faults.  Also, it may sometimes be necessary
      to disable CRCs.  ("modprobe mmc_core use_spi_crc=n")
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: mikael.starvik@axis.com,
      Cc: Hans-Peter Nilsson <hp@axis.com>
      Cc: Jan Nikitenko <jan.nikitenko@gmail.com>
      Cc: Mike Lavender <mike@steroidmicros.com>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      15a0580c