1. 11 10月, 2016 1 次提交
    • T
      spi: Add Flag to Enable Slave Select with GPIO Chip Select. · 6b1576aa
      Thor Thayer 提交于
      Some SPI masters require slave selection before the transfer
      can begin [1]. The SPI framework currently selects the chip using
      either 1) the internal CS mechanism or 2) the GPIO CS, but not both.
      
      This patch adds a new master->flags define to indicate both the GPIO
      CS and the internal chip select mechanism should be used.
      
      Tested On:
          Altera CycloneV development kit
          Compile tested for build errors on x86_64 (allyesconfigs)
      
      [1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39)
      Signed-off-by: NThor Thayer <tthayer@opensource.altera.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      6b1576aa
  2. 30 9月, 2016 2 次提交
  3. 29 9月, 2016 1 次提交
  4. 27 9月, 2016 2 次提交
    • M
      spi: pxa2xx: Add support for GPIO descriptor chip selects · 99f499cd
      Mika Westerberg 提交于
      The driver uses custom chip_info coming from platform data for chip selects
      implemented as GPIOs. If the system lacks board files setting up the
      platform data, it is not possible to use GPIOs as chip selects.
      
      This adds support for GPIO descriptors so that regardless of the underlying
      firmware interface (DT, ACPI or platform data) the driver can request GPIOs
      used as chip selects and configure them accordingly.
      
      The custom chip_info GPIO support is still left there to make sure the
      existing systems keep working as expected.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      99f499cd
    • M
      spi: imx: Gracefully handle NULL master->cs_gpios · f13d4e18
      Marek Vasut 提交于
      It is possible that master->cs_gpios is NULL after spi_bitbang_start(),
      this happens if the master has no CS GPIOs specified in DT. Check for
      this case after spi_bitbang_start() to prevent NULL pointer dereference
      in the subsequent for loop, which accesses the master->cs_gpios field.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Martin Kaiser <martin@kaiser.cx>
      Cc: Mark Brown <broonie@kernel.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f13d4e18
  5. 25 9月, 2016 4 次提交
  6. 17 9月, 2016 2 次提交
  7. 16 9月, 2016 2 次提交
    • A
      spi: bcm-qspi: fix suspend/resume #ifdef · a0319f8b
      Arnd Bergmann 提交于
      The two power management functions are define inside of an #ifdef
      but referenced unconditionally, which is obviously broken when
      CONFIG_PM_SLEEP is not set:
      
      drivers/spi/spi-bcm-qspi.c:1300:13: error: 'bcm_qspi_suspend' undeclared here (not in a function)
      drivers/spi/spi-bcm-qspi.c:1301:13: error: 'bcm_qspi_resume' undeclared here (not in a function)
      
      This replaces the #ifdef with a __maybe_unused annotation that lets
      the compiler figure out whether to drop the functions itself,
      and uses SIMPLE_DEV_PM_OPS() to refer to the functions.
      
      This will also fill the freeze/thaw/poweroff/restore callback
      pointers in addition to suspend/resume, but as far as I can tell,
      this is what we want.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: fa236a7e ("spi: bcm-qspi: Add Broadcom MSPI driver")
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a0319f8b
    • A
      spi: bcm-qspi: don't include linux/mtd/cfi.h · c0a75d07
      Arnd Bergmann 提交于
      The header isn't actually needed here, but including it leads
      to a build warning when CONFIG_MTD is disabled:
      
      include/linux/mtd/cfi.h:76:2: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Werror=cpp]
      
      Fixes: fa236a7e (spi: bcm-qspi: Add Broadcom MSPI driver)
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c0a75d07
  8. 15 9月, 2016 9 次提交
  9. 14 9月, 2016 1 次提交
  10. 13 9月, 2016 16 次提交