1. 30 12月, 2010 1 次提交
    • G
      spi/omap2_mcspi.c: Force CS to be in inactive state after off-mode transition · 42ce7fd6
      Gregory CLEMENT 提交于
      When SPI wake up from OFF mode, CS is in the wrong state: force it to the
      inactive state.
      
      During the system life, I monitored the CS behavior using a oscilloscope.
      I also activated debug in omap2_mcspi, so I saw when driver disable the clocks
      and restore context when device is not used.Each time the CS was in the correct
      state.  It was only when system was put suspend to ram with off-mode activated
      that on resume the CS was in wrong state( ie activated).
      
      Changelog:
      * Change from v1 to v2:
        - Rebase on linus/master (after 2.6.37-rc1)
        - Do some clean-up and fix indentation on both patches
        - Add more explanations for patch 2
      
      * Change from v2 to v3:
        - Use directly resume function of spi_master instead of using function
        - from spi_device as Grant Likely pointed it out.
        - Force this transition explicitly for each CS used by a device.
      
      * Change from v3 to v4:
        - Patch clean-up according to Kevin Hilman and checkpatch.
        - Now force CS to be in inactive state only if it was inactive when it was
          suspended.
      
      * Change from v4 to v5:
        - Rebase on linus/master (after 2.6.37-rc3)
        - Collapse some lines as pointed by Grant Likely
        - Fix a spelling
      
      * Change from v5 to v6:
        - Rebase on linus/master (after 2.6.37-rc7)
        - Use CONFIG_SUSPEND instead of CONFIG_PM
        - Didn't use legacy PM methods anymore. Instead, add a struct dev_pm_ops and
          add the resume method there.
        - Fix multi-line comment style
      
      * Change from v6 to v7:
        - Rebase on linus/master (after 2.6.37-rc8)
        - Drop an extra line
      Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
      Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Reviewed-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      42ce7fd6
  2. 24 12月, 2010 3 次提交
  3. 23 12月, 2010 1 次提交
  4. 15 12月, 2010 1 次提交
  5. 01 12月, 2010 1 次提交
  6. 26 10月, 2010 1 次提交
  7. 22 10月, 2010 5 次提交
    • L
      spi: fixed odd static string conventions in core code · eb288a1f
      Linus Walleij 提交于
      This patch removes convention of passing a static string as a
      parameter to another static string.  The convention is intended to
      reduce text usage by sharing the common bits of the string, but the
      implementation is inherently fragile (a change to one format string
      but not the other will nullify any possible advantage), it isn't
      necessarily a net win depending on what this compiler does, and it
      it reduces code readability.
      Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com>
      [grant.likely@secretlab.ca: removed dev_dbg->dev_err hunk]
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      eb288a1f
    • M
      spi/bfin_spi: only request GPIO on first load · 73e1ac16
      Michael Hennerich 提交于
      The gpiolib code does not allow people to do gpio_request() on a GPIO
      once it has already been requested.  So make sure we only request the
      pin on the first setup of a SPI device.  Otherwise, if you attempts to
      reconfigure a SPI device on the fly (like change bit sizes), the setup
      function incorrectly fails.
      Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      73e1ac16
    • M
      spi/bfin_spi: handle error/status changes after data interrupts · 782a8956
      Michael Hennerich 提交于
      The error interrupt on the BF537 SIC cannot be enabled on a
      per-peripheral basis.  Once the error interrupt is enabled
      for one peripheral, it is automatically enabled for all.
      
      So in the Blackfin on-chip SPI driver, we need to clear out
      these known errors in the data interrupt once we've successfully
      finished processing all of the pending data.
      Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      782a8956
    • F
      spi: enable spi_board_info to be registered after spi_master · 2b9603a0
      Feng Tang 提交于
      Currently spi_register_board_info() has to be called before its related
      spi_master be registered, otherwise these board info will be just ignored.
      
      This patch will remove this order limit, it adds a global spi master list
      like the existing global board info listr. Whenever a board info or a
      spi_master is registered, the spi master list or board info list
      will be scanned, and a new spi device will be created if there is a
      master-board info match.
      Signed-off-by: NFeng Tang <feng.tang@intel.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      2b9603a0
    • E
      spi: add spi_tegra driver · 0c03a1dd
      Erik Gilling 提交于
      v2 changes:
        from Thierry Reding:
          * add "select TEGRA_SYSTEM_DMA" to Kconfig
        from Grant Likely:
          * add oneline description to header
          * inline references to DRIVER_NAME
          * inline references to BUSY_TIMEOUT
          * open coded bytes_per_word()
          * spi_readl/writel -> spi_tegra_readl/writel
          * move transfer validation to spi_tegra_transfer
          * don't request_mem_region iomem as platform bus does that for us
          * __exit -> __devexit
      
      v3 changes:
        from Russell King:
          * put request_mem_region back int
        from Grant Likely:
          * remove #undef DEBUG
          * add SLINK_ to register bit defines
          * remove unused bytes_per_word
          * make spi_tegra_readl/writel static linine
          * various refactoring for clarity
          * mark err if BSY bit is not cleared after 1000 retries
          * move spinlock to protect setting of RDY bit
          * subsys_initcall -> module_init
      
      v3 changes:
        from Grant Likely:
          * update spi_tegra to use PTR_ERRless dma API
      
      v4 changes:
        from Grant Likely:
          * remove empty spi_tegra_cleanup fucntion
          * allow device ids of -1
      Signed-off-by: NErik Gilling <konkers@android.com>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Thierry Reding <thierry.reding@avionic-design.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      
      spi: tegra: cleanups from upstream review
      
      Change-Id: Icecf7e64efcb39de072a15234ba1faa4bad40d25
      Signed-off-by: NErik Gilling <konkers@android.com>
      0c03a1dd
  8. 21 10月, 2010 2 次提交
  9. 18 10月, 2010 25 次提交