1. 23 10月, 2013 1 次提交
  2. 07 10月, 2013 1 次提交
  3. 03 10月, 2013 1 次提交
  4. 27 9月, 2013 2 次提交
  5. 13 9月, 2013 1 次提交
  6. 12 9月, 2013 2 次提交
  7. 10 9月, 2013 1 次提交
  8. 05 9月, 2013 1 次提交
    • M
      spi/pxa2xx: check status register as well to determine if the device is off · 269e4a41
      Mika Westerberg 提交于
      The current interrupt handler calls pm_runtime_suspended() to check if the
      device is suspended or not. However, runtime PM status of the device is
      only set to suspended once all PM runtime suspend hooks have executed.
      
      In case of Intel Lynxpoint we have the device bound to the ACPI power
      domain and its runtime suspend hook will put the device to D3hot (or D3cold
      if possible). This means that the device is powered off before its state is
      set to runtime suspended. While in this state the device might get an
      interrupt that is meant for another device (as the interrupt line is
      shared), and because the device is powered off accessing its registers will
      return 0xffffffff that the driver misinterprets as an invalid state.
      
      When this happens user will see messages like below on the console:
      
        pxa2xx-spi INT33C0:00: bad message state in interrupt handler
      
      Fix this by checking the status register for ~0 and returning IRQ_NONE in
      that case.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      269e4a41
  9. 01 9月, 2013 3 次提交
  10. 31 8月, 2013 5 次提交
  11. 30 8月, 2013 1 次提交
  12. 29 8月, 2013 4 次提交
  13. 28 8月, 2013 1 次提交
  14. 27 8月, 2013 3 次提交
  15. 26 8月, 2013 1 次提交
  16. 23 8月, 2013 5 次提交
  17. 22 8月, 2013 7 次提交
    • W
      spi: DUAL and QUAD support · f477b7fb
      wangyuhang 提交于
      fix the previous patch some mistake below:
      1. DT in slave node, use "spi-tx-nbits = <1/2/4>" in place of using
         "spi-tx-dual, spi-tx-quad" directly, same to rx. So correct the
         previous way to get the property in @of_register_spi_devices().
      2. Change the value of transfer bit macro(SPI_NBITS_SINGLE, SPI_NBITS_DUAL
         SPI_NBITS_QUAD) to 0x01, 0x02 and 0x04 to match the actual wires.
      3. Add the following check
         (1)keep the tx_nbits and rx_nbits in spi_transfer is not beyond the
            single, dual and quad.
         (2)keep tx_nbits and rx_nbits are contained by @spi_device->mode
            example: if @spi_device->mode = DUAL, then tx/rx_nbits can not be set
                     to QUAD(SPI_NBITS_QUAD)
         (3)if "@spi_device->mode & SPI_3WIRE", then tx/rx_nbits should be in
            single(SPI_NBITS_SINGLE)
      Signed-off-by: Nwangyuhang <wangyuhang2014@gmail.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      f477b7fb
    • S
      spi/qspi: Add qspi flash controller · 505a1495
      Sourav Poddar 提交于
      The patch add basic support for the quad spi controller.
      
      QSPI is a kind of spi module that allows single,
      dual and quad read access to external spi devices. The module
      has a memory mapped interface which provide direct interface
      for accessing data form external spi devices.
      
      The patch will configure controller clocks, device control
      register and for defining low level transfer apis which
      will be used by the spi framework to transfer data to
      the slave spi device(flash in this case).
      
      Test details:
      -------------
      Tested this on dra7 board.
      Test1: Ran mtd_stesstest for 40000 iterations.
         - All iterations went through without failure.
      Test2: Use mtd utilities:
        - flash_erase to erase the flash device
        - mtd_debug read to read data back.
        - mtd_debug write to write to the data flash.
       diff between the write and read data shows zero.
      
      Acked-by: Felipe Balbi<balbi@ti.com>
      Reviewed-by: Felipe Balbi<balbi@ti.com>
      Signed-off-by: NSourav Poddar <sourav.poddar@ti.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      505a1495
    • W
      spi: spi-efm32: remove redundant dev_err call in efm32_spi_probe() · 1f630159
      Wei Yongjun 提交于
      There is a error message within devm_ioremap_resource
      already, so remove the dev_err call to avoid redundant
      error message.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      1f630159
    • C
      spi:Add Freescale DSPI driver for Vybrid VF610 platform · 349ad66c
      Chao Fu 提交于
      The serial peripheral interface (SPI) module implemented on Freescale Vybrid
      platform provides a synchronous serial bus for communication between Vybrid
      and the external peripheral device.
      The SPI supports full-duplex, three-wire synchronous transfer, has TX/RX FIFO
      with depth of four entries.
      
      This driver is the SPI master mode driver and has been tested on Vybrid
      VF610TWR board.
      Signed-off-by: NAlison Wang <b18965@freescale.com>
      Signed-off-by: NChao Fu  <b44548@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      349ad66c
    • G
      spi: mpc512x: cleanup clock API use · a81a5094
      Gerhard Sittig 提交于
      cleanup the MPC512x SoC's SPI master's use of the clock API
      - get, prepare, and enable the MCLK during probe; disable, unprepare and
        put the MCLK upon remove; hold a reference to the clock over the
        period of use
      - fetch MCLK rate (reference) once during probe and slightly reword BCLK
        (bitrate) determination to reduce redundancy as well as to not exceed
        the maximum text line length
      - stick with the PPC_CLOCK 'psc%d_mclk' name for clock lookup, only
        switch to a fixed string later after device tree based clock lookup
        will have become available
      Signed-off-by: NGerhard Sittig <gsi@denx.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      a81a5094
    • J
      spi: bfin-v3: remove unnecessary platform_set_drvdata() · d9740f6a
      Jingoo Han 提交于
      The driver core clears the driver data to NULL after device_release
      or on probe failure. Thus, it is not needed to manually clear the
      device driver data to NULL.
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      d9740f6a
    • F
      spi: spi-pl022: Fix warning when CONFIG_ARM_LPAE=y · 7085f403
      Fabio Estevam 提交于
      When CONFIG_ARM_LPAE=y the following build warning is generated:
      
      drivers/spi/spi-pl022.c:2178:9: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' [-Wformat]
      
      According to Documentation/printk-formats.txt '%pa' can be used to properly
      print 'resource_size_t'.
      Reported-by: NKevin Hilman <khilman@linaro.org>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      7085f403