1. 18 11月, 2010 18 次提交
  2. 26 10月, 2010 1 次提交
  3. 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
  4. 21 10月, 2010 2 次提交
  5. 18 10月, 2010 14 次提交